@@ -250,17 +250,6 @@ public function testGetCollectCodeCoverageInformationSuccess()
250250 $ this ->assertTrue ($ test_case ->getCollectCodeCoverageInformation ());
251251 }
252252
253- /**
254- * Test description.
255- *
256- * @return void
257- * @expectedException \RuntimeException
258- */
259- public function testGetCollectCodeCoverageInformationFailure ()
260- {
261- $ this ->getFixture ()->getCollectCodeCoverageInformation ();
262- }
263-
264253 /**
265254 * Test description.
266255 *
@@ -292,17 +281,19 @@ public function testRunCreateResult()
292281 * Test description.
293282 *
294283 * @return void
295- * @expectedException \RuntimeException
296284 */
297285 public function testRunWithCoverageWithoutRemoteUrl ()
298286 {
299287 /* @var $test_case BrowserTestCase */
300288 /* @var $session_strategy ISessionStrategy */
301- list ($ test_case , $ session_strategy ) = $ this ->prepareForRun (array (), false );
289+ list ($ test_case , $ session_strategy ) = $ this ->prepareForRun (array ());
302290 $ test_case ->setName ('getTestId ' );
303291
292+ $ code_coverage = m::mock ('\\PHP_CodeCoverage ' );
293+ $ code_coverage ->shouldReceive ('append ' )->with (m::mustBe (array ()), $ test_case )->once ();
294+
304295 $ result = $ this ->getTestResult ($ test_case , 1 , true );
305- $ result ->shouldReceive ('getCodeCoverage ' )->once ()->andReturn (m:: mock ( '\\ PHP_CodeCoverage ' ) );
296+ $ result ->shouldReceive ('getCodeCoverage ' )->once ()->andReturn ($ code_coverage );
306297
307298 $ test_id = $ test_case ->getTestId ();
308299 $ this ->assertEmpty ($ test_id );
0 commit comments