Permalink
Browse files

Updating report unit tests for new reporter.

  • Loading branch information...
1 parent b4e0099 commit a5c014f5b227d7a65783823f89d075596186b643 @davidpersson davidpersson committed May 19, 2012
Showing with 9 additions and 7 deletions.
  1. +5 −1 tests/cases/test/DispatcherTest.php
  2. +4 −6 tests/cases/test/ReportTest.php
View
6 tests/cases/test/DispatcherTest.php
@@ -27,7 +27,11 @@ public function testRunDefaults() {
}
public function testRunWithReporter() {
- $report = Dispatcher::run(null, array('reporter' => 'html'));
+ $report = Dispatcher::run(null, array(
+ 'reporter' => function($info) {
+ return $info;
+ }
+ ));
$this->assertTrue($report instanceof Report);
$result = $report->group;
View
10 tests/cases/test/ReportTest.php
@@ -40,8 +40,7 @@ public function testFilters() {
array('data' => array('lithium\tests\mocks\test\MockFilterClassTest'))
),
'filters' => array("Complexity" => ""),
- 'format' => 'html',
- 'reporter' => 'html'
+ 'format' => 'html'
));
$expected = array('lithium\test\filter\Complexity' => array(
@@ -67,10 +66,9 @@ public function testStats() {
public function testRender() {
$report = new Report(array(
- 'title' => 'lithium\tests\mocks\test\MockUnitTest',
- 'group' => new Group(array('data' => array('lithium\tests\mocks\test\MockUnitTest'))),
- 'format' => 'html',
- 'reporter' => 'html'
+ 'title' => '\lithium\tests\mocks\test\MockUnitTest',
+ 'group' => new Group(array('data' => array('\lithium\tests\mocks\test\MockUnitTest'))),
+ 'format' => 'html'
));
$report->run();

0 comments on commit a5c014f

Please sign in to comment.