/** * @return null */ public function testBuild() { $expected = 'NOT me'; $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()); }
/** * @expectedException InvalidArgumentException * @return null */ public function testAddFilterBadOperatorObj() { $expr_1 = $this->getMock($this->exprInterface); $this->assertEquals(array(), $this->exprList->getAll()); $this->exprList->add($expr_1, new StdClass()); }