2 If PHPT_Case::validate() is provided with a string, it will be appended to "PHPT_Case_Validator_"
3 to attempt to find a validator to use.
8 require_once dirname(__FILE__) . '/../_setup.inc';
10 class PHPT_Case_Validator_Foobar implements PHPT_Case_Validator {
11 public function validate(PHPT_Case $case) {
12 echo __METHOD__ . " was called\n";
14 public function is(PHPT_Case $case) { }
17 $case = new PHPT_Case(new PHPT_SectionList(), dirname(__FILE__) . '/fake-test-case.phpt');
18 $case->validate('Foobar');
23 PHPT_Case_Validator_Foobar::validate was called