public function ClosureExpressionVisitorTest::testWalkInComparison in Plug 7
File
- lib/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ ClosureExpressionVisitorTest.php, line 111
Class
- ClosureExpressionVisitorTest
- @group DDC-1637
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testWalkInComparison() {
$closure = $this->visitor
->walkComparison($this->builder
->in("foo", array(
1,
2,
3,
)));
$this
->assertTrue($closure(new TestObject(2)));
$this
->assertTrue($closure(new TestObject(1)));
$this
->assertFalse($closure(new TestObject(0)));
}