Exemplo n.º 1
0
 public function testIsValidWithCleanHook()
 {
     require_once __DIR__ . '/../files/forms/test_form_1.php';
     $form = new \TestForm1();
     $this->assertFalse($form->isValid(array('lib' => 'bar')));
     $this->assertEquals('Lib should be "foo"', $form->errors['_all_']);
     $form = new \TestForm1();
     $this->assertTrue($form->isValid(array('lib' => 'foo')));
 }