src/StreamWrapper.php
public function url_stat($path, $flags)
    {
        if (!isset(self::$uris[$path])) {
            return null;
        }

        return $this->getStreamStats(self::$uris[$path]);
    }
public function url_stat($path, $flags)
    {
        if (!isset(self::$uris[$path])) {
            return null;
        }

        return $this->getStreamStats(self::$uris[$path]);
    }
Get stats based on wrapped StreamInterface by it's mocked uri.

@see stat()
@param string $path
@param int    $flags
@return array|null