public function getSuiteWithResult($result, $methodCount) { $result = FIXTURES . DS . 'results' . DS . $result; $functions = array(); for ($i = 0; $i < $methodCount; $i++) { $functions[] = $this->mockFunction($i); } $suite = new Suite('', $functions); $suite->setTempFile($result); return $suite; }
/** * @expectedException \RuntimeException */ public function testEmptyResultsLog() { $suite = new Suite('/path/to/ResultSuite.php', array()); $empty = FIXTURES . DS . 'results' . DS . 'empty-test-suite.xml'; file_put_contents($suite->getTempFile(), file_get_contents($empty)); $this->printer->printFeedback($suite); }