2 PHPT_Case::validate() will call validate() on the provided object
7 require_once dirname(__FILE__) . '/../_setup.inc';
9 class FooBarValidator implements PHPT_Case_Validator {
10 public function validate(PHPT_Case $case) {
11 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(new FooBarValidator());
23 FooBarValidator::validate was called