public function ClosureExpressionVisitorTest::testWalkContainsComparison in Plug 7
File
- lib/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ ClosureExpressionVisitorTest.php, line 130
Class
- ClosureExpressionVisitorTest
- @group DDC-1637
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testWalkContainsComparison() {
$closure = $this->visitor
->walkComparison($this->builder
->contains('foo', 'hello'));
$this
->assertTrue($closure(new TestObject('hello world')));
$this
->assertFalse($closure(new TestObject('world')));
}