Skip to content

Commit

Permalink
Merge 9205ee3 into fb04a47
Browse files Browse the repository at this point in the history
  • Loading branch information
mamazu committed Nov 26, 2018
2 parents fb04a47 + 9205ee3 commit 2916037
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ before_script:

script:
- composer validate --strict

- ls -lah test-application
- vendor/bin/phpspec run
- vendor/bin/behat --strict || vendor/bin/behat --strict --rerun
- vendor/bin/behat --strict -vv || vendor/bin/behat --strict --rerun
3 changes: 1 addition & 2 deletions src/Listener/FailedStepListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ private function logScreenshot()
private function saveLog($content, $type)
{
$path = sprintf("%s/behat-%s.%s", $this->logDirectory, $this->currentDateAsString, $type);

if (!file_put_contents($path, $content)) {
if (file_put_contents($path, $content) === false) {
throw new \RuntimeException(sprintf('Failed while trying to write log in "%s".', $path));
}
}
Expand Down

0 comments on commit 2916037

Please sign in to comment.