Esempio n. 1
0
 public function testLessThanCreatesOperatorPredicate()
 {
     $predicate = new Predicate();
     $predicate->lessThan('foo.bar', 'bar');
     $parts = $predicate->getExpressionData();
     $this->assertEquals(1, count($parts));
     $this->assertContains('%s < %s', $parts[0]);
     $this->assertContains(array('foo.bar', 'bar'), $parts[0]);
 }