/** * Test read */ public function testRead() { $stream = new StringStream('test'); $this->assertEquals('te', $stream->read(2)); }