Example #1
0
 /**
  * @return null
  */
 public function testBuild()
 {
     $expected = 'me AND not you';
     $this->assertEquals($expected, $this->expr->build());
     $this->assertSame($this->expr, $this->expr->enableParentheses());
     $this->assertEquals("({$expected})", $this->expr->build());
     $this->assertSame($this->expr, $this->expr->disableParentheses());
     $this->assertEquals($expected, $this->expr->build());
 }
Example #2
0
 /**
  * @return null
  */
 public function testBuild()
 {
     $expected = 'my.age BETWEEN 9 AND 18';
     $this->assertEquals($expected, $this->expr->build());
     $this->assertSame($this->expr, $this->expr->enableParentheses());
     $this->assertEquals("({$expected})", $this->expr->build());
     $this->assertSame($this->expr, $this->expr->disableParentheses());
     $this->assertEquals($expected, $this->expr->build());
 }