PHP Class Codesleeve\Stapler\Factories\FileTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: codesleeve/stapler

Public Methods

Method Description
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.

Protected Methods

Method Description
buildSymfonyUploadedFile ( boolean $testing = true ) : UploadedFile Helper method to build a mock Symfony UploadedFile object.

Method Details

buildSymfonyUploadedFile() protected method

Helper method to build a mock Symfony UploadedFile object.
protected buildSymfonyUploadedFile ( boolean $testing = true ) : UploadedFile
$testing boolean
return UploadedFile

it_should_be_able_to_build_a_stapler_uploaded_file_object_from_a_redirect_url() public method

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() public method

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() public method

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() public method

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() public method

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() public method

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

setUp() public method

Setup method.
public setUp ( )

tearDown() public method

Teardown method.
public tearDown ( )