PHP Class Matthias\SymfonyServiceDefinitionValidator\Tests\ArgumentValidatorTest

Inheritance: extends PHPUnit_Framework_TestCase
ファイルを表示 Open project: matthiasnoback/symfony-service-definition-validator

Public Methods

Method Description
testFailsIfExpressionCouldNotBeEvaluated ( )
testFailsIfSyntaxOfExpressionIsInvalid ( )
testFailsWhenOptionalParameterHasArrayTypeHintAndResultOfExpressionIsNullButNullIsNotAllowed ( )
testFailsWhenParameterHasArrayTypeHintButArgumentIsNotArray ( )
testFailsWhenParameterHasTypeHintButNoReferenceOrDefinitionWasProvidedAsArgument ( )
testFailsWhenParameterHasTypeHintForObjectButArgumentIsDefinitionForServiceOfWrongType ( )
testFailsWhenParameterHasTypeHintForObjectButArgumentIsReferenceToServiceOfWrongType ( )
testFailsWhenResultOfExpressionIsNotAnObject ( )
testFailsWhenResultOfExpressionIsNotAnObjectOfTheExpectedClass ( )
testFailsWhenResultOfExpressionIsNullButNullIsNotAllowed ( )

Protected Methods

Method Description
setUp ( )

Private Methods

Method Description
createMockResultingClassResolver ( )
skipTestIfExpressionsAreNotAvailable ( )

Method Details

setUp() protected method

protected setUp ( )

testFailsIfExpressionCouldNotBeEvaluated() public method

testFailsIfSyntaxOfExpressionIsInvalid() public method

testFailsWhenOptionalParameterHasArrayTypeHintAndResultOfExpressionIsNullButNullIsNotAllowed() public method

testFailsWhenParameterHasArrayTypeHintButArgumentIsNotArray() public method

testFailsWhenParameterHasTypeHintButNoReferenceOrDefinitionWasProvidedAsArgument() public method

testFailsWhenParameterHasTypeHintForObjectButArgumentIsDefinitionForServiceOfWrongType() public method

testFailsWhenParameterHasTypeHintForObjectButArgumentIsReferenceToServiceOfWrongType() public method

testFailsWhenResultOfExpressionIsNotAnObject() public method

testFailsWhenResultOfExpressionIsNotAnObjectOfTheExpectedClass() public method

testFailsWhenResultOfExpressionIsNullButNullIsNotAllowed() public method