Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Keep assertion message in assertStreamContents()
Browse files Browse the repository at this point in the history
This change modifies the default value of `$message` to be an empty
string, allowing us to pass it on to `assertStream()`.
  • Loading branch information
weierophinney committed Jul 24, 2018
1 parent 991795b commit 274cab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/PhpInputStreamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public function getFileContents()
return file_get_contents($this->file);
}

public function assertStreamContents($test)
public function assertStreamContents($test, $message = '')
{
$content = $this->getFileContents();
$this->assertSame($content, $test);
$this->assertSame($content, $test, $message);
}

public function testStreamIsNeverWritable()
Expand Down

0 comments on commit 274cab4

Please sign in to comment.