PHP 클래스 Neos\Eel\Tests\Unit\AbstractEvaluatorTest

Is used to test both the compiling and interpreting Eel evaluators.
상속: extends Neos\Flow\Tests\UnitTestCase
파일 보기 프로젝트 열기: neos/flow-development-collection

공개 메소드들

메소드 설명
arrayLiteralExpressions ( ) : array
arrayLiteralsCanBeParsed ( string $expression, Context $context, mixed $result )
booleanExpressions ( ) : array
booleanExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
calculationExpressions ( ) : array
calculationExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
combinedExpressions ( ) : array
combinedExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
comparisonExpressions ( ) : array
comparisonExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
conditionalOperatorExpressions ( ) : array
conditionalOperatorsCanBeParsed ( string $expression, Context $context, mixed $result )
expressionEndingWithWhitespaceWorkAsExpected ( )
expressionStartingWithWhitespaceWorkAsExpected ( )
floatLiterals ( ) : array
floatLiteralsCanBeParsed ( string $expression, Context $context, mixed $result )
integerLiterals ( ) : array
integerLiteralsCanBeParsed ( string $expression, Context $context, mixed $result )
invalidExpressions ( ) : array
invalidExpressionsThrowExceptions ( $expression )
methodCallExpressions ( ) : array
methodCallExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
methodCallOfUndefinedFunctionThrowsException ( )
methodCallOfUnknownMethodThrowsException ( )
notExpressions ( ) : array
notExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
objectLiteralExpressions ( ) : array
objectLiteralsCanBeParsed ( string $expression, Context $context, mixed $result )
objectPathOnArrayExpressions ( ) : array
objectPathOnArrayExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
objectPathOnObjectExpressions ( ) : array
objectPathOnObjectExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
stringConcatenations ( ) : array
stringConcatenationsCanBeParsed ( string $expression, Context $context, mixed $result )
stringLiterals ( ) : array
stringLiteralsCanBeParsed ( string $expression, Context $context, mixed $result )

보호된 메소드들

메소드 설명
assertEvaluated ( mixed $expected, string $expression, Context $context ) Assert that the expression is evaluated to the expected result under the given context. It also ensures that the Eel expression is recognized using the predefined regular expression.
createEvaluator ( ) : Neos\Eel\EelEvaluatorInterface

메소드 상세

arrayLiteralExpressions() 공개 메소드

public arrayLiteralExpressions ( ) : array
리턴 array

arrayLiteralsCanBeParsed() 공개 메소드

public arrayLiteralsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

assertEvaluated() 보호된 메소드

Assert that the expression is evaluated to the expected result under the given context. It also ensures that the Eel expression is recognized using the predefined regular expression.
protected assertEvaluated ( mixed $expected, string $expression, Context $context )
$expected mixed
$expression string
$context Neos\Eel\Context

booleanExpressions() 공개 메소드

public booleanExpressions ( ) : array
리턴 array

booleanExpressionsCanBeParsed() 공개 메소드

public booleanExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

calculationExpressions() 공개 메소드

public calculationExpressions ( ) : array
리턴 array

calculationExpressionsCanBeParsed() 공개 메소드

public calculationExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

combinedExpressions() 공개 메소드

public combinedExpressions ( ) : array
리턴 array

combinedExpressionsCanBeParsed() 공개 메소드

public combinedExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

comparisonExpressions() 공개 메소드

public comparisonExpressions ( ) : array
리턴 array

comparisonExpressionsCanBeParsed() 공개 메소드

public comparisonExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

conditionalOperatorExpressions() 공개 메소드

conditionalOperatorsCanBeParsed() 공개 메소드

public conditionalOperatorsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

createEvaluator() 추상적인 보호된 메소드

abstract protected createEvaluator ( ) : Neos\Eel\EelEvaluatorInterface
리턴 Neos\Eel\EelEvaluatorInterface

expressionEndingWithWhitespaceWorkAsExpected() 공개 메소드

expressionStartingWithWhitespaceWorkAsExpected() 공개 메소드

floatLiterals() 공개 메소드

public floatLiterals ( ) : array
리턴 array

floatLiteralsCanBeParsed() 공개 메소드

public floatLiteralsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

integerLiterals() 공개 메소드

public integerLiterals ( ) : array
리턴 array

integerLiteralsCanBeParsed() 공개 메소드

public integerLiteralsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

invalidExpressions() 공개 메소드

public invalidExpressions ( ) : array
리턴 array

invalidExpressionsThrowExceptions() 공개 메소드

public invalidExpressionsThrowExceptions ( $expression )

methodCallExpressions() 공개 메소드

public methodCallExpressions ( ) : array
리턴 array

methodCallExpressionsCanBeParsed() 공개 메소드

public methodCallExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

methodCallOfUndefinedFunctionThrowsException() 공개 메소드

methodCallOfUnknownMethodThrowsException() 공개 메소드

notExpressions() 공개 메소드

public notExpressions ( ) : array
리턴 array

notExpressionsCanBeParsed() 공개 메소드

public notExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

objectLiteralExpressions() 공개 메소드

public objectLiteralExpressions ( ) : array
리턴 array

objectLiteralsCanBeParsed() 공개 메소드

public objectLiteralsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

objectPathOnArrayExpressions() 공개 메소드

objectPathOnArrayExpressionsCanBeParsed() 공개 메소드

public objectPathOnArrayExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

objectPathOnObjectExpressions() 공개 메소드

objectPathOnObjectExpressionsCanBeParsed() 공개 메소드

public objectPathOnObjectExpressionsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

stringConcatenations() 공개 메소드

public stringConcatenations ( ) : array
리턴 array

stringConcatenationsCanBeParsed() 공개 메소드

public stringConcatenationsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed

stringLiterals() 공개 메소드

public stringLiterals ( ) : array
리턴 array

stringLiteralsCanBeParsed() 공개 메소드

public stringLiteralsCanBeParsed ( string $expression, Context $context, mixed $result )
$expression string
$context Neos\Eel\Context
$result mixed