You are here

public function ClosureExpressionVisitorTest::testWalkLessThanEqualsComparison in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/ClosureExpressionVisitorTest.php \Doctrine\Tests\Common\Collections\ClosureExpressionVisitorTest::testWalkLessThanEqualsComparison()

File

vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/ClosureExpressionVisitorTest.php, line 84

Class

ClosureExpressionVisitorTest
@group DDC-1637

Namespace

Doctrine\Tests\Common\Collections

Code

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