PHP Class Matthias\SymfonyServiceDefinitionValidator\Tests\ArgumentValidatorTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: matthiasnoback/symfony-service-definition-validator

Méthodes publiques

Méthode Description
testFailsIfExpressionCouldNotBeEvaluated ( )
testFailsIfSyntaxOfExpressionIsInvalid ( )
testFailsWhenOptionalParameterHasArrayTypeHintAndResultOfExpressionIsNullButNullIsNotAllowed ( )
testFailsWhenParameterHasArrayTypeHintButArgumentIsNotArray ( )
testFailsWhenParameterHasTypeHintButNoReferenceOrDefinitionWasProvidedAsArgument ( )
testFailsWhenParameterHasTypeHintForObjectButArgumentIsDefinitionForServiceOfWrongType ( )
testFailsWhenParameterHasTypeHintForObjectButArgumentIsReferenceToServiceOfWrongType ( )
testFailsWhenResultOfExpressionIsNotAnObject ( )
testFailsWhenResultOfExpressionIsNotAnObjectOfTheExpectedClass ( )
testFailsWhenResultOfExpressionIsNullButNullIsNotAllowed ( )

Méthodes protégées

Méthode Description
setUp ( )

Private Methods

Méthode Description
createMockResultingClassResolver ( )
skipTestIfExpressionsAreNotAvailable ( )

Method Details

setUp() protected méthode

protected setUp ( )

testFailsIfExpressionCouldNotBeEvaluated() public méthode

testFailsIfSyntaxOfExpressionIsInvalid() public méthode

testFailsWhenOptionalParameterHasArrayTypeHintAndResultOfExpressionIsNullButNullIsNotAllowed() public méthode

testFailsWhenParameterHasArrayTypeHintButArgumentIsNotArray() public méthode

testFailsWhenParameterHasTypeHintButNoReferenceOrDefinitionWasProvidedAsArgument() public méthode

testFailsWhenParameterHasTypeHintForObjectButArgumentIsDefinitionForServiceOfWrongType() public méthode

testFailsWhenParameterHasTypeHintForObjectButArgumentIsReferenceToServiceOfWrongType() public méthode

testFailsWhenResultOfExpressionIsNotAnObject() public méthode

testFailsWhenResultOfExpressionIsNotAnObjectOfTheExpectedClass() public méthode

testFailsWhenResultOfExpressionIsNullButNullIsNotAllowed() public méthode