public function testToStringRetrievesFullContentsOfStream() { $message = 'foo bar'; $this->stream->write($message); $this->assertEquals($message, (string) $this->stream); }