Scalr\Tests\Functional\Api\V2\SpecSchema\SpecManager::checkPath PHP Method

checkPath() protected method

Check if path not exist, will throw exception
protected checkPath ( string $path )
$path string path in Api specifications
    protected function checkPath($path)
    {
        if (!in_array($path, $this->getPathTemplates())) {
            throw new InvalidArgumentException("{$path} don't exist in {$this->specFile}");
        }
    }