Example #1
0
 public function testValidatorsAreEvaluatedWhenRegistered()
 {
     $validator = new FakeValidator();
     $validator->_IsValid = true;
     $validators = new PageValidators(new SmartyPage());
     $validators->Register('someid', $validator);
     $validators->Validate();
     $this->assertTrue($validator->_WasValidated, "should have been validated when registered");
     $this->assertTrue($validators->AreAllValid());
 }
Example #2
0
 public function Validate()
 {
     $this->Validators->Validate();
 }