Ejemplo n.º 1
0
 /**
  * @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());
 }
Ejemplo n.º 2
0
 /**
  * @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());
 }