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

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

    function it_should_throw_a_SchemaParserException_when_the_schema_file_is_not_readable()
    {
        $fakePath = '/this/path/should/never/really/exist/I/would/hope';
        $this->beConstructedWith($fakePath);
        $domain = new DomainConfiguration('example.com');
        $domain->setLdapType('ad');
        $this->shouldThrow(new SchemaParserException('Cannot find schema for "ad" in "' . $fakePath . '"'))->duringParse($domain->getLdapType(), 'user');
    }
SchemaYamlParserSpec