spec\LdapTools\Security\Ace\AceSpec::it_should_throw_an_exception_if_converting_to_SDDL_and_the_SID_or_type_is_not_set PHP Метод

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

    function it_should_throw_an_exception_if_converting_to_SDDL_and_the_SID_or_type_is_not_set()
    {
        $this->beConstructedWith(null);
        $this->shouldThrow('LdapTools\\Exception\\LogicException')->duringToSddl();
        $this->setTrustee(new SID('PS'));
        $this->shouldThrow('LdapTools\\Exception\\LogicException')->duringToSddl();
        $this->setType(new AceType('D'));
        $this->shouldNotThrow('LdapTools\\Exception\\LogicException')->duringToSddl();
    }