Esempio n. 1
0
 public function testBasicValidation()
 {
     $this->object->filter(new Validation\NotEmptyFilter(), 'empty');
     $this->assertFalse($this->object->validate());
     $this->assertTrue($this->object->hasError());
     $this->assertEquals("empty", $this->object->getError());
     $this->object->setValue("test");
     $this->assertTrue($this->object->validate());
 }