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

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

    function it_should_throw_an_exception_when_a_changetype_is_invalid()
    {
        $ldif = file_get_contents(__DIR__ . '/../../resources/ldif/fail_invalid_changetype.txt');
        $e = new LdifParserException('The changetype "foo" is invalid on line number 3 near "cn: foobar"');
        $this->shouldThrow($e)->duringParse($ldif);
    }