public function testMiscMethods() { $stream = new StringOutputStream(); $stream->write('hello'); $this->assertEquals(5, $stream->size()); $this->assertEquals('hello', $stream->__toString()); $this->assertEquals(0, $stream->reset()->size()); }