add result property to Case (re #36)
[phpt.git] / tests / Case / result-property-is-CodeRunner_Result-after-run.phpt
blobbac02cb33b29ffa5044f6b434553afcd632d657f
1 --TEST--
2 After Case::run() is called, its result property is an instance of CodeRunner_Result
3 --FILE--
4 <?php
6 require_once dirname(__FILE__) . '/../_setup.inc';
8 $case = new PHPT_Case(
9     new PHPT_SectionList(array(
10         new PHPT_Section_FILE(''),
11     )),
12     dirname(__FILE__) . '/fake-test.phpt'
15 $case->run(new PHPT_Reporter_Null());
17 assert('$case->result instanceof PHPT_CodeRunner_Result');
20 ===DONE===
21 --EXPECT--
22 ===DONE===