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()); }
public function Validate() { $this->Validators->Validate(); }