public function testSeeksToPositionByReading() { $a = new AppendStream([Stream::factory('foo'), Stream::factory('bar'), Stream::factory('baz')]); $this->assertTrue($a->seek(3)); $this->assertEquals(3, $a->tell()); $this->assertEquals('bar', $a->read(3)); $a->seek(6); $this->assertEquals(6, $a->tell()); $this->assertEquals('baz', $a->read(3)); }