Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Fix failing phpspec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibor Kotosz committed Nov 16, 2015
1 parent ed00f0c commit c8003fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/Bex/Behat/Context/TestRunnerContextSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ function it_can_detect_when_there_was_no_failing_tests_but_expected(
$this->createWorkingDirectory();
$this->iRunBehat();

$process->getExitCode()->willReturn(0);
$process->isSuccessful()->willReturn(true);
$this->shouldThrow(
new \RuntimeException('Behat did not find any failing scenario.')
)->duringIShouldSeeAFailingTest();

$process->getExitCode()->willReturn(255);
$process->isSuccessful()->willReturn(false);
$this->shouldNotThrow('\RuntimeException')->duringIShouldSeeAFailingTest();
}

Expand Down

0 comments on commit c8003fb

Please sign in to comment.