PHP Class Tests\PHPSA\TestCase

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: ovr/phpsa Class Usage Examples

Public Methods

Method Description
newFakeScalarExpr ( integer $type = CompiledExpression::UNKNOWN, null $value = null ) : Fake
newScalarExpr ( $value ) : PhpParser\Node\Scalar | PhpParser\Node\Expr\Array_

Protected Methods

Method Description
assertInstanceOfCompiledExpression ( CompiledExpression | null $actual, string $message = '' )
compileExpression ( object $expr, Context $context = null ) : CompiledExpression
getContext ( ) : Context

Method Details

assertInstanceOfCompiledExpression() protected method

protected assertInstanceOfCompiledExpression ( CompiledExpression | null $actual, string $message = '' )
$actual PHPSA\CompiledExpression | null
$message string

compileExpression() protected method

protected compileExpression ( object $expr, Context $context = null ) : CompiledExpression
$expr object
$context PHPSA\Context
return PHPSA\CompiledExpression

getContext() protected method

protected getContext ( ) : Context
return PHPSA\Context

newFakeScalarExpr() public method

public newFakeScalarExpr ( integer $type = CompiledExpression::UNKNOWN, null $value = null ) : Fake
$type integer
$value null
return PHPSA\Node\Scalar\Fake

newScalarExpr() public method

public newScalarExpr ( $value ) : PhpParser\Node\Scalar | PhpParser\Node\Expr\Array_
$value
return PhpParser\Node\Scalar | PhpParser\Node\Expr\Array_