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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy