public function ClosureExpressionVisitorTest::testWalkGreaterThanComparison

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Collections/ClosureExpressionVisitorTest.php, line 81

Class

ClosureExpressionVisitorTest
@group DDC-1637

Namespace

Doctrine\Tests\Common\Collections

Code

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