PHP Class Tests\PHPSA\TestCase

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: ovr/phpsa Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

Method Details

assertInstanceOfCompiledExpression() protected méthode

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

compileExpression() protected méthode

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

getContext() protected méthode

protected getContext ( ) : Context
Résultat PHPSA\Context

newFakeScalarExpr() public méthode

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

newScalarExpr() public méthode

public newScalarExpr ( $value ) : PhpParser\Node\Scalar | PhpParser\Node\Expr\Array_
$value
Résultat PhpParser\Node\Scalar | PhpParser\Node\Expr\Array_