Ejemplo n.º 1
0
 /**
  *  test the criteria ->has* magic method
  *  
  *  @since  11-8-10
  */
 public function testHas()
 {
     $c = new MingoCriteria();
     $this->assertFalse($c->hasFoo());
     $c->isFoo(1);
     $this->assertTrue($c->hasFoo());
     $this->assertFalse($c->hasBar());
     $c->gteBar(2);
     $this->assertTrue($c->hasBar());
     $this->assertTrue($c->hasFoo());
 }