spec\LdapTools\Schema\Parser\SchemaYamlParserSpec::it_should_throw_an_error_when_parsing_an_incorrect_scope PHP Метод

it_should_throw_an_error_when_parsing_an_incorrect_scope() публичный Метод

    function it_should_throw_an_error_when_parsing_an_incorrect_scope()
    {
        $this->beConstructedWith(__DIR__ . '/../../../resources/schema');
        $this->shouldThrow(new SchemaParserException('The scope "foo" is not valid. Valid types are: subtree, onelevel, base'))->duringParse('incorrect_scope', 'scope');
    }
SchemaYamlParserSpec