Exemplo n.º 1
0
 public function testGetLiteral()
 {
     $literal = new Literal('bar');
     $this->assertEquals('bar', $literal->getLiteral());
 }
Exemplo n.º 2
0
 public function testCanPassLiteralAndParameterToConstructor()
 {
     $predicate = new Literal('foo.bar = ?', 'bar');
     $this->assertEquals('foo.bar = ?', $predicate->getLiteral());
     $this->assertEquals(array('bar'), $predicate->getParameter());
 }