spec\LdapTools\Security\Acl\DaclSpec::it_should_order_the_aces_non_canonically_to_binary_if_specified PHP Метод

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

    function it_should_order_the_aces_non_canonically_to_binary_if_specified()
    {
        $this->beConstructedWith(null);
        $deny = (new Ace('D'))->setTrustee(new SID('PS'));
        $allow = (new Ace('A'))->setTrustee(new SID('PS'));
        $this->addAce($allow, $deny);
        $this->toBinary(false)->shouldBeEqualTo(hex2bin('0400300002000000000014000000000001010000000000050a000000010014000000000001010000000000050a000000'));
        $this->toBinary()->shouldBeEqualTo(hex2bin('0400300002000000010014000000000001010000000000050a000000000014000000000001010000000000050a000000'));
    }