public function CriteriaTest::testWhere in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/CriteriaTest.php \Doctrine\Tests\Common\Collections\CriteriaTest::testWhere()
File
- vendor/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ CriteriaTest.php, line 29
Class
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testWhere() {
$expr = new Comparison("field", "=", "value");
$criteria = new Criteria();
$criteria
->where($expr);
$this
->assertSame($expr, $criteria
->getWhereExpression());
}