PHP Class Nelmio\Alice\Generator\Instantiator\Chainable\StaticFactoryInstantiatorTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: nelmio/alice

Public Methods

Method Description
setUp ( )
testCanInstantiateFixtureWithIfConstructorIsAStaticFactory ( )
testCannotInstantiateFixtureWithDefaultConstructor ( )
testCannotInstantiateFixtureWithIfConstructorIsANonStaticFactory ( )
testCannotInstantiateFixtureWithNoMethodCallConstructor ( )
testInstantiatesObjectWithFactory ( )
testInstantiatesObjectWithFactoryAndArguments ( )
testIsAChainableInstantiator ( )
testIsNotClonable ( )
testThrowsAnExceptionIfCouldNotCallOnTheFactory ( )
testThrowsAnExceptionIfCouldNotFindFactoryClass ( )
testThrowsAnExceptionIfCouldNotFindFactoryMethod ( )
testThrowsAnExceptionIfCouldNotInstantiateObject ( )
testThrowsAnExceptionIfFactoryDoesNotReturnAnInstance ( )
testThrowsAnExceptionIfFixtureClassDoesNotMatchObjectClass ( )

Method Details

setUp() public method

public setUp ( )

testCanInstantiateFixtureWithIfConstructorIsAStaticFactory() public method

testCannotInstantiateFixtureWithDefaultConstructor() public method

testCannotInstantiateFixtureWithIfConstructorIsANonStaticFactory() public method

testCannotInstantiateFixtureWithNoMethodCallConstructor() public method

testInstantiatesObjectWithFactory() public method

testInstantiatesObjectWithFactoryAndArguments() public method

testIsAChainableInstantiator() public method

testIsNotClonable() public method

public testIsNotClonable ( )

testThrowsAnExceptionIfCouldNotCallOnTheFactory() public method

testThrowsAnExceptionIfCouldNotFindFactoryClass() public method

testThrowsAnExceptionIfCouldNotFindFactoryMethod() public method

testThrowsAnExceptionIfCouldNotInstantiateObject() public method

testThrowsAnExceptionIfFactoryDoesNotReturnAnInstance() public method

testThrowsAnExceptionIfFixtureClassDoesNotMatchObjectClass() public method