You are here

public function CriteriaTest::testWhere in Zircon Profile 8

Same name and namespace in other branches
  1. 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

CriteriaTest

Namespace

Doctrine\Tests\Common\Collections

Code

public function testWhere() {
  $expr = new Comparison("field", "=", "value");
  $criteria = new Criteria();
  $criteria
    ->where($expr);
  $this
    ->assertSame($expr, $criteria
    ->getWhereExpression());
}