You are here

public function ExpressionBuilderTest::testAndX in Zircon Profile 8

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

File

vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/ExpressionBuilderTest.php, line 24

Class

ExpressionBuilderTest
@group DDC-1637

Namespace

Doctrine\Tests\Common\Collections

Code

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