spec\LdapTools\Utilities\DialInDataSpec::it_should_set_the_user_privilege_and_callback_number_when_converting_back_to_binary PHP Метод

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

    function it_should_set_the_user_privilege_and_callback_number_when_converting_back_to_binary()
    {
        $cbn = str_pad('02', 48, '20', STR_PAD_RIGHT);
        $this->setUserPrivilege(9);
        $this->setCallbackPhoneNumber($cbn);
        $this->toBinary()->shouldEqual(hex2bin(substr_replace($this->testData, $cbn, 4, 48)));
    }