/** * Method to test isSeekable(). * * @return void * * @covers Asika\Http\Stream::isSeekable */ public function testIsSeekable() { $this->createTempFile(); file_put_contents($this->tmpnam, 'FOO BAR'); $resource = fopen($this->tmpnam, Stream::MODE_READ_WRITE_RESET); $stream = new Stream($resource); $this->assertTrue($stream->isSeekable()); }