spec\LdapTools\Utilities\TSPropertyArraySpec::it_should_respect_the_binary_data_stored_after_the_TSPropertyArray_data_when_constructed PHP Метод

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

    function it_should_respect_the_binary_data_stored_after_the_TSPropertyArray_data_when_constructed()
    {
        $postBinary = '666f6f626172';
        $hex = bin2hex((new TSPropertyArray())->set('CtxWFProfilePath', 'foo')->toBinary());
        $hexAdd = $hex . $postBinary;
        $this->beConstructedWith(hex2bin($hexAdd));
        $this->set('CtxWFProfilePath', 'foo');
        $this->toBinary()->shouldHaveHex($hex);
        $this->getPostBinary()->shouldEqual(hex2bin($postBinary));
    }