diff --git a/tests/ClassMapGeneratorTest.php b/tests/ClassMapGeneratorTest.php index 16a8fc2..2723c71 100644 --- a/tests/ClassMapGeneratorTest.php +++ b/tests/ClassMapGeneratorTest.php @@ -208,6 +208,32 @@ public function stream_read($count) { public function stream_stat() { return $this->resource === false ? false : fstat($this->resource); } + + /** + * @return bool + */ + public function stream_eof() { + return $this->resource === false ? true : feof($this->resource); + } + + /** + * @return void + */ + public function stream_close() { + if ($this->resource !== false) { + fclose($this->resource); + } + } + + /** + * @return array|false + */ + public function url_stat(string $path, int $flags) { + $scheme = parse_url($path, PHP_URL_SCHEME); + $varname = str_replace($scheme . '://', '', $path); + + return stat(self::$rootPath . '/' . $varname); + } }; $testProxyStreamWrapper::$rootPath = realpath(__DIR__) . '/Fixtures/classmap';