protected function validatePath(string $path): void
    {
        if (empty($path)) {
            $this->fail(new InvalidArgumentException("Path is not specified"));
        }

        if (!is_string($path)) {
            $this->fail(new InvalidArgumentException("Path is not a string"));
        }
    }
protected function validatePath(string $path): void
    {
        if (empty($path)) {
            $this->fail(new InvalidArgumentException("Path is not specified"));
        }

        if (!is_string($path)) {
            $this->fail(new InvalidArgumentException("Path is not a string"));
        }
    }
protected function validatePath ( string $ path ) : void { if ( empty ( $ path ) ) { $ this -> fail ( new InvalidArgumentException ( "Path is not specified" ) ) ; } if ( ! is_string ( $ path ) ) { $ this -> fail ( new InvalidArgumentException ( "Path is not a string" ) ) ; } }
Validate path string

Check that the given path is a non-empty
string.

NOTE: This method is very different from
the Utility::validatePath(), which
checks the filesystem path for
existence.

@param string $path Path string to check
@return void
Validate path string