PHP 클래스 PhpBench\Tests\Unit\Storage\Driver\Dbal\Visitor\SqlVisitorTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: dantleech/phpbench

공개 메소드들

메소드 설명
provideVisit ( )
setUp ( )
testGroupJoin ( ) It should add a join for groups when needed.
testInvalidCompositeOperator ( ) It should throw an exception if an unknown composite operator is supplied.
testInvalidParam ( ) It should throw an exception if "param" is used without a key.
testNonArrayIn ( ) It should throw an exception if a non-array value is passed as an argument to $in.
testParamJoin ( ) It should add joins for parameters when required.
testResetState ( ) It should reset the values on each call.
testUnknownComparator ( ) It should throw an exception if an unknown comparator is encountered.
testUnknownField ( ) It should throw an exception if an invalid field is specified.
testUnsupportedConstraintClass ( ) It should throw an exception if an unsupported constraint class is given.
testVisit ( $jsonString, $expectedSql, $expectedValues ) It should translate a JSON query into an SQL query.

메소드 상세

provideVisit() 공개 메소드

public provideVisit ( )

setUp() 공개 메소드

public setUp ( )

testGroupJoin() 공개 메소드

It should add a join for groups when needed.
public testGroupJoin ( )

testInvalidCompositeOperator() 공개 메소드

It should throw an exception if an unknown composite operator is supplied.

testInvalidParam() 공개 메소드

It should throw an exception if "param" is used without a key.
public testInvalidParam ( )

testNonArrayIn() 공개 메소드

It should throw an exception if a non-array value is passed as an argument to $in.
public testNonArrayIn ( )

testParamJoin() 공개 메소드

It should add joins for parameters when required.
public testParamJoin ( )

testResetState() 공개 메소드

It should reset the values on each call.
public testResetState ( )

testUnknownComparator() 공개 메소드

It should throw an exception if an unknown comparator is encountered.

testUnknownField() 공개 메소드

It should throw an exception if an invalid field is specified.
public testUnknownField ( )

testUnsupportedConstraintClass() 공개 메소드

It should throw an exception if an unsupported constraint class is given.

testVisit() 공개 메소드

It should translate a JSON query into an SQL query.
public testVisit ( $jsonString, $expectedSql, $expectedValues )