assertFalse($stream->isSeekable()); $method = new ReflectionMethod(BackfillBusinessDataColumnar::class, 'seekableResource'); $resource = $method->invoke(new BackfillBusinessDataColumnar(), $stream); try { $this->assertTrue(stream_get_meta_data($resource)['seekable']); $this->assertSame('PAR1-fixture', stream_get_contents($resource)); } finally { fclose($resource); } } }