public function testAllowZeroParameterValue() { $predicate = new Literal('foo.bar > ?', 0); $this->assertEquals(0, $predicate->getParameter()); }
public function testGetExpressionData() { $literal = new Literal('bar'); $this->assertEquals(array(array('bar', array(), array())), $literal->getExpressionData()); }
public function testCanPassLiteralAndParameterToConstructor() { $predicate = new Literal('foo.bar = ?', 'bar'); $this->assertEquals('foo.bar = ?', $predicate->getLiteral()); $this->assertEquals(array('bar'), $predicate->getParameter()); }