PHP Class Pinq\Tests\Integration\Analysis\TypeAnalysisTest

Author: Elliot Levin ([email protected])
Inheritance: extends ExpressionAnalysisTestCase
Exibir arquivo Open project: timetoogo/pinq

Protected Properties

Property Type Description
$foo

Public Methods

Method Description
testBinaryOperators ( )
testCasts ( )
testClosure ( )
testEmpty ( )
testFields ( )
testFunctionCalls ( )
testIndexers ( )
testInvocation ( )
testIsset ( )
testMetaDataWithInvalidExpressionThrowsException ( )
testMethodCalls ( )
testNativeTypes ( )
testNew ( )
testReturnTypeWithInvalidExpressionThrowsException ( )
testStaticField ( )
testStaticMethodCall ( )
testTernary ( )
testThrow ( )
testUnaryOperators ( )

Protected Methods

Method Description
assertCorrectType ( Pinq\Analysis\ITypeAnalysis $analysis, $type, Expression $expression )
assertTypeMatchesValue ( Pinq\Analysis\ITypeAnalysis $analysis, Expression $expression, Pinq\Analysis\IType $metadataType = null )
doAnalysisTest ( callable $expression, callable $test, array $variableTypeMap = [] )

Method Details

assertCorrectType() protected method

protected assertCorrectType ( Pinq\Analysis\ITypeAnalysis $analysis, $type, Expression $expression )
$analysis Pinq\Analysis\ITypeAnalysis
$expression Pinq\Expressions\Expression

assertTypeMatchesValue() protected method

protected assertTypeMatchesValue ( Pinq\Analysis\ITypeAnalysis $analysis, Expression $expression, Pinq\Analysis\IType $metadataType = null )
$analysis Pinq\Analysis\ITypeAnalysis
$expression Pinq\Expressions\Expression
$metadataType Pinq\Analysis\IType

doAnalysisTest() protected method

protected doAnalysisTest ( callable $expression, callable $test, array $variableTypeMap = [] )
$expression callable
$test callable
$variableTypeMap array

testBinaryOperators() public method

public testBinaryOperators ( )

testCasts() public method

public testCasts ( )

testClosure() public method

public testClosure ( )

testEmpty() public method

public testEmpty ( )

testFields() public method

public testFields ( )

testFunctionCalls() public method

public testFunctionCalls ( )

testIndexers() public method

public testIndexers ( )

testInvocation() public method

public testInvocation ( )

testIsset() public method

public testIsset ( )

testMetaDataWithInvalidExpressionThrowsException() public method

testMethodCalls() public method

public testMethodCalls ( )

testNativeTypes() public method

public testNativeTypes ( )

testNew() public method

public testNew ( )

testReturnTypeWithInvalidExpressionThrowsException() public method

testStaticField() public method

public testStaticField ( )

testStaticMethodCall() public method

testTernary() public method

public testTernary ( )

testThrow() public method

public testThrow ( )

testUnaryOperators() public method

public testUnaryOperators ( )

Property Details

$foo protected_oe static_oe property

protected static $foo