adjust tests to handle new "Errors: N" code in output
[phpt.git] / tests / Reporter / Text / onSuiteEnd-with-all-passes.phpt
blob2d978b02f4e0e26eeb7b9da270dbf6373c46b35e
1 --TEST--
2 onSuiteEnd() outputs a tally of all tests run
3 --FILE--
4 <?php
6 require_once dirname(__FILE__) . '/_setup.inc';
8 $case = new PHPT_SimpleTestCase();
9 $reporter = new PHPT_Reporter_Text();
11 // capture output of onCasePass()
12 ob_start();
13 $reporter->onCasePass($case);
14 ob_clean();
16 $reporter->onSuiteEnd(new PHPT_SimpleSuite());
19 ===DONE===
20 --EXPECTF--
23 Test Cases Run: 1, Passes: 1, Failures: 0, Errors: 0, Skipped: 0
24 Total Test Time: %d:%d
25 ===DONE===