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

Commit 274cab4

Browse files
committed
Keep assertion message in assertStreamContents()
This change modifies the default value of `$message` to be an empty string, allowing us to pass it on to `assertStream()`.
1 parent 991795b commit 274cab4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/PhpInputStreamTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ public function getFileContents()
3636
return file_get_contents($this->file);
3737
}
3838

39-
public function assertStreamContents($test)
39+
public function assertStreamContents($test, $message = '')
4040
{
4141
$content = $this->getFileContents();
42-
$this->assertSame($content, $test);
42+
$this->assertSame($content, $test, $message);
4343
}
4444

4545
public function testStreamIsNeverWritable()

0 commit comments

Comments
 (0)