spec\LdapTools\Ldif\LdifParserSpec::it_should_throw_an_exception_when_the_url_loader_type_specified_is_not_recognized PHP Метод

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

    function it_should_throw_an_exception_when_the_url_loader_type_specified_is_not_recognized()
    {
        $ldif = file_get_contents(__DIR__ . '/../../resources/ldif/fail_invalid_url_loader.txt');
        $e = new LdifParserException('Cannot find a URL loader for type "foo" on line number 3 near "cn:< foo://bar"');
        $this->shouldThrow($e)->duringParse($ldif);
    }