public function ExpressionBuilderTest::testOrX

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Collections/ExpressionBuilderTest.php, line 28

Class

ExpressionBuilderTest
@group DDC-1637

Namespace

Doctrine\Tests\Common\Collections

Code

public function testOrX() {
  $expr = $this->builder
    ->orX($this->builder
    ->eq("a", "b"));
  $this
    ->assertInstanceOf("Doctrine\\Common\\Collections\\Expr\\CompositeExpression", $expr);
  $this
    ->assertEquals(CompositeExpression::TYPE_OR, $expr
    ->getType());
}