PHP Класс PhpBench\Tests\Unit\Storage\Driver\Dbal\Visitor\SqlVisitorTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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 )