PhpSpec\Laravel\Extension\LaravelExtension::getBootstrapPath PHP Метод

getBootstrapPath() приватный Метод

Get path to bootstrap file.
private getBootstrapPath ( null | string $path = null ) : null | string
$path null | string Optional bootstrap file path
Результат null | string Bootstrap file path
    private function getBootstrapPath($path = null)
    {
        if (!$path) {
            $path = dirname($this->getVendorPath()) . '/bootstrap/app.php';
        } elseif (!$this->isAbsolutePath($path)) {
            $path = $this->getVendorPath() . '/' . $path;
        }
        if (!is_file($path)) {
            throw new InvalidArgumentException("App bootstrap at `{$path}` not found.");
        }
        return $path;
    }