PHP Класс Codesleeve\Stapler\Factories\FileTest

Наследование: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
it_should_be_able_to_build_a_stapler_uploaded_file_object_from_a_redirect_url ( ) Test that the file factory can create a Codesleeve\Stapler\UploadedFile object from a redirect url.
it_should_be_able_to_build_a_stapler_uploaded_file_object_from_a_string_file_path ( ) Test that the file factory can create a Codesleeve\Stapler\UploadedFile object from a string filepath.
it_should_be_able_to_build_a_stapler_uploaded_file_object_from_a_symfony_file_object ( ) Test that the file factory can create a Codesleeve\Stapler\UploadedFile object from a symfony object.
it_should_be_able_to_build_a_stapler_uploaded_file_object_from_a_url ( ) Test that the file factory can create a Codesleeve\Stapler\UploadedFile object from a url.
it_should_be_able_to_build_a_stapler_uploaded_file_object_from_an_array ( ) Test that the file factory can create a Codesleeve\Stapler\UploadedFile object from an array.
it_should_be_able_to_build_a_stapler_uploaded_file_object_without_following_querystring_in_basename ( ) Test that file created by file factory is not containing unnecessary quer string.
setUp ( ) Setup method.
tearDown ( ) Teardown method.

Защищенные методы

Метод Описание
buildSymfonyUploadedFile ( boolean $testing = true ) : UploadedFile Helper method to build a mock Symfony UploadedFile object.

Описание методов

buildSymfonyUploadedFile() защищенный Метод

Helper method to build a mock Symfony UploadedFile object.
protected buildSymfonyUploadedFile ( boolean $testing = true ) : UploadedFile
$testing boolean
Результат UploadedFile

it_should_be_able_to_build_a_stapler_uploaded_file_object_from_a_redirect_url() публичный Метод

Test that the file factory can create a Codesleeve\Stapler\UploadedFile object from a redirect url.

it_should_be_able_to_build_a_stapler_uploaded_file_object_from_a_string_file_path() публичный Метод

Test that the file factory can create a Codesleeve\Stapler\UploadedFile object from a string filepath.

it_should_be_able_to_build_a_stapler_uploaded_file_object_from_a_symfony_file_object() публичный Метод

Test that the file factory can create a Codesleeve\Stapler\UploadedFile object from a symfony object.

it_should_be_able_to_build_a_stapler_uploaded_file_object_from_a_url() публичный Метод

Test that the file factory can create a Codesleeve\Stapler\UploadedFile object from a url.

it_should_be_able_to_build_a_stapler_uploaded_file_object_from_an_array() публичный Метод

Test that the file factory can create a Codesleeve\Stapler\UploadedFile object from an array.

it_should_be_able_to_build_a_stapler_uploaded_file_object_without_following_querystring_in_basename() публичный Метод

Test that file created by file factory is not containing unnecessary quer string.

setUp() публичный Метод

Setup method.
public setUp ( )

tearDown() публичный Метод

Teardown method.
public tearDown ( )