You are here

public function ClosureExpressionVisitorTest::testWalkLessThanComparison in Plug 7

File

lib/doctrine/collections/tests/Doctrine/Tests/Common/Collections/ClosureExpressionVisitorTest.php, line 76

Class

ClosureExpressionVisitorTest
@group DDC-1637

Namespace

Doctrine\Tests\Common\Collections

Code

public function testWalkLessThanComparison() {
  $closure = $this->visitor
    ->walkComparison($this->builder
    ->lt("foo", 1));
  $this
    ->assertFalse($closure(new TestObject(1)));
  $this
    ->assertTrue($closure(new TestObject(0)));
}