PHP Class PhpBench\Tests\Unit\Expression\ParserTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: dantleech/phpbench

Public Methods

Method Description
provideComparison ( )
setUp ( )
testComparison ( $operator ) It should parse simple constraints.
testCompositeConstraints ( ) It should allow composite constraints.
testImplicitAnd ( ) It should allow implicit and.
testInvalidJson ( ) It should throw an exception if the JSON is invalid.
testInvalidOperator ( ) It should throw an exception if an invalid operator is provided.
testKeyValueEquality ( ) It should allow key: value equality expressions.
testMultipleComposite ( ) It should allow multiple arguments to a composite.

Method Details

provideComparison() public method

public provideComparison ( )

setUp() public method

public setUp ( )

testComparison() public method

It should parse simple constraints.
public testComparison ( $operator )

testCompositeConstraints() public method

It should allow composite constraints.

testImplicitAnd() public method

It should allow implicit and.
public testImplicitAnd ( )

testInvalidJson() public method

It should throw an exception if the JSON is invalid.
public testInvalidJson ( )

testInvalidOperator() public method

It should throw an exception if an invalid operator is provided.
public testInvalidOperator ( )

testKeyValueEquality() public method

It should allow key: value equality expressions.

testMultipleComposite() public method

It should allow multiple arguments to a composite.