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

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: nelmio/alice

Méthodes publiques

Méthode 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 méthode

public setUp ( )

testCanInstantiateFixtureWithIfConstructorIsAMalformedFactory() public méthode

testCannotInstantiateFixtureWithDefaultConstructor() public méthode

testCannotInstantiateFixtureWithIfConstructorIsAFactory() public méthode

testCannotInstantiateFixtureWithNoMethodCallConstructor() public méthode

testIgnoresConstructorMethodSpecifiedByTheFixtureIfIsSomethingElseThanTheConstructor() public méthode

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 méthode

testIsAChainableInstantiator() public méthode

testIsNotClonable() public méthode

public testIsNotClonable ( )

testThrowsAnExceptionIfCouldNotInstantiateObject() public méthode