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

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: nelmio/alice

Public Methods

Method Description
setUp ( )
testCanInstantiateFixtureWithIfConstructorIsAMalformedFactory ( )
testCannotInstantiateFixtureWithDefaultConstructor ( )
testCannotInstantiateFixtureWithIfConstructorIsAFactory ( )
testCannotInstantiateFixtureWithNoMethodCallConstructor ( )
testIgnoresConstructorMethodSpecifiedByTheFixtureIfIsSomethingElseThanTheConstructor ( ) Edge case allowed because this scenario should not occur. Indeed if the method is other than the constructor, the constructor is then a factory (static or not) i.e. has a caller. This situation is handled at the denormalization level.
testInstantiatesObjectWithArguments ( )
testIsAChainableInstantiator ( )
testIsNotClonable ( )
testThrowsAnExceptionIfCouldNotInstantiateObject ( )

Method Details

setUp() public method

public setUp ( )

testCanInstantiateFixtureWithIfConstructorIsAMalformedFactory() public method

testCannotInstantiateFixtureWithDefaultConstructor() public method

testCannotInstantiateFixtureWithIfConstructorIsAFactory() public method

testCannotInstantiateFixtureWithNoMethodCallConstructor() public method

testIgnoresConstructorMethodSpecifiedByTheFixtureIfIsSomethingElseThanTheConstructor() public method

Edge case allowed because this scenario should not occur. Indeed if the method is other than the constructor, the constructor is then a factory (static or not) i.e. has a caller. This situation is handled at the denormalization level.

testInstantiatesObjectWithArguments() public method

testIsAChainableInstantiator() public method

testIsNotClonable() public method

public testIsNotClonable ( )

testThrowsAnExceptionIfCouldNotInstantiateObject() public method