Exemple #1
0
 public function testCompareObject()
 {
     $filter = new Filter("field", "<=", 1);
     $object = new \stdClass();
     $object->field = 0;
     $this->assertEquals($filter->compareObject($object), true);
     $object->field = 2;
     $this->assertEquals($filter->compareObject($object), false);
 }