You are here

public function CriteriaTest::testWhere in Plug 7

File

lib/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());
}