stream_open('whatever', 'w', 0, $openedPath)); $ole->stream_open('whatever', 'w', STREAM_REPORT_ERRORS, $openedPath); self::assertSame('Only reading is supported', self::$errorString); } public function testChainedBadPath(): void { self::assertSame('', self::$errorString); $ole = new OLE\ChainedBlockStream(); $openedPath = ''; self::assertFalse($ole->stream_open('whatever', 'r', 0, $openedPath)); $ole->stream_open('whatever', 'r', STREAM_REPORT_ERRORS, $openedPath); self::assertSame('OLE stream not found', self::$errorString); } }