2 PHPT_Case::is() requires all objects passed to it be an instanceof PHPT_Case_Validator
6 require_once dirname(__FILE__) . '/../_setup.inc';
8 class FooBarValidator {
9 public function is() { }
12 $case = new PHPT_Case(new PHPT_SectionList(), dirname(__FILE__) . '/fake-test-case.phpt');
13 $case->is(new FooBarValidator());
18 .*\$validator instanceof PHPT_Case_Validator.*