Esempio n. 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());
 }
Esempio n. 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());
 }
Esempio n. 3
0
 /**
  * @param   string   $operand
  * @return  File
  */
 public function __construct(ExprInterface $lexpr, ExprInterface $rexpr, $isParentheses = false)
 {
     parent::__construct($lexpr, '<', $rexpr, $isParentheses);
 }
Esempio n. 4
0
 /**
  * @param   string   $operand
  * @return  File
  */
 public function __construct(ExprInterface $expr, ExprInterface $contents, $isParentheses = false)
 {
     parent::__construct($expr, 'IN', $contents, $isParentheses);
 }