add result property to Case (re #36)
[phpt.git] / tests / Case / validate-requires-all-objects-be-Case_Validator.phpt
blob495bbfe1cf2a42180cb70476c371df8320c153e1
1 --TEST--
2 PHPT_Case::validate() requires all objects passed to it be an instanceof PHPT_Case_Validator
3 --ARGS--
4 --FILE--
5 <?php
7 require_once dirname(__FILE__) . '/../_setup.inc';
9 class FooBarValidator {
10     public function validate() { }
13 $case = new PHPT_Case(new PHPT_SectionList());
14 $case->validate(new FooBarValidator());
17 ===DONE===
18 --EXPECTREGEX--
19 .*\$validator instanceof PHPT_Case_Validator.*
20 ===DONE===