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