Permalink
Browse files

Use mock in `UnitTest` do not interfer with normal test reporting.

Formatting tests.
Adding accessors for protected methods/properties in mock.
(Re)moving any helper methods used in test defined in test.
Refactoring test with precondition on expecting exceptions.
Removing repetitive assertions on backtrace data.
Adding new test for testing backtracing.
  • Loading branch information...
1 parent feec693 commit 630b5726e684b2130e894e7e0f8f2f7a3b07ba9f @davidpersson davidpersson committed May 20, 2012
Showing with 257 additions and 272 deletions.
  1. +1 −1 tests/cases/test/ReportTest.php
  2. +224 −271 tests/cases/test/UnitTest.php
  3. +32 −0 tests/mocks/test/MockUnitTest.php
@@ -57,7 +57,7 @@ public function testStats() {
));
$report->run();
- $expected = 1;
+ $expected = 2;
$result = $report->stats();
$this->assertEqual($expected, $result['count']['asserts']);
$this->assertEqual($expected, $result['count']['passes']);
Oops, something went wrong.

0 comments on commit 630b572

Please sign in to comment.