PHP 클래스 Tests\PHPSA\TestCase

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: ovr/phpsa 1 사용 예제들

공개 메소드들

메소드 설명
newFakeScalarExpr ( integer $type = CompiledExpression::UNKNOWN, null $value = null ) : Fake
newScalarExpr ( $value ) : PhpParser\Node\Scalar | PhpParser\Node\Expr\Array_

보호된 메소드들

메소드 설명
assertInstanceOfCompiledExpression ( CompiledExpression | null $actual, string $message = '' )
compileExpression ( object $expr, Context $context = null ) : CompiledExpression
getContext ( ) : Context

메소드 상세

assertInstanceOfCompiledExpression() 보호된 메소드

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

compileExpression() 보호된 메소드

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

getContext() 보호된 메소드

protected getContext ( ) : Context
리턴 PHPSA\Context

newFakeScalarExpr() 공개 메소드

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

newScalarExpr() 공개 메소드

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