You are here

public function ClosureExpressionVisitorTest::testWalkContainsComparison in Zircon Profile 8

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

File

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

Class

ClosureExpressionVisitorTest
@group DDC-1637

Namespace

Doctrine\Tests\Common\Collections

Code

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')));
}