public function ClosureExpressionVisitorTest::testWalkAndCompositeExpression in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/ClosureExpressionVisitorTest.php \Doctrine\Tests\Common\Collections\ClosureExpressionVisitorTest::testWalkAndCompositeExpression()
File
- vendor/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ ClosureExpressionVisitorTest.php, line 138
Class
- ClosureExpressionVisitorTest
- @group DDC-1637
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testWalkAndCompositeExpression() {
$closure = $this->visitor
->walkCompositeExpression($this->builder
->andX($this->builder
->eq("foo", 1), $this->builder
->eq("bar", 1)));
$this
->assertTrue($closure(new TestObject(1, 1)));
$this
->assertFalse($closure(new TestObject(1, 0)));
$this
->assertFalse($closure(new TestObject(0, 1)));
$this
->assertFalse($closure(new TestObject(0, 0)));
}