public function testWritesToBufferStream() { $this->body->read(2); $this->body->write('hi'); $this->body->seek(0); $this->assertEquals('tehiing', (string) $this->body); }
/** * @expectedException \InvalidArgumentException */ public function testEnsuresValidWhence() { $this->body->seek(10, -123456); }