Beispiel #1
0
 function testRunLeftOverErrorsTestCase()
 {
     $test = new TestOfLeftOverErrors();
     $this->assertFalse($test->run(new SimpleReporter()));
 }
Beispiel #2
0
 function testRunLeftOverErrorsTestCase()
 {
     $test = new TestOfLeftOverErrors();
     $this->assertFalse($test->run(new SimpleReporter()));
     // also make sure that the test run did produce exactly 1 failure, nothing else:
     $reporter = $test->getReporter();
     // get the inner test's reporter, as /this/ test level should be using another one again already!
     $this->assertEqual($reporter->getTestCaseCount(), 1, "%s -> Fail TestCaseCount");
     $this->assertEqual($reporter->getTestCaseProgress(), 1, "%s -> Fail TestCaseProgress");
     $this->assertEqual($reporter->getPassCount(), 1, "%s -> Fail getPassCount");
     $this->assertEqual($reporter->getFailCount(), 0, "%s -> Fail getFailCount");
     $this->assertEqual($reporter->getExceptionCount(), 1, "%s -> Fail getExceptionCount");
 }