spec\LdapTools\Utilities\UserParametersSpec::it_should_not_construct_the_dialin_data_if_it_is_completely_empty PHP Метод

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

    function it_should_not_construct_the_dialin_data_if_it_is_completely_empty()
    {
        $expected = substr_replace($this->defaultHex, str_pad('', 52, '20'), 44, 52);
        $expected = substr_replace($expected, str_pad(unpack('H*', UserParameters::RESERVED_DATA_VALUE['RDS'])[1], 44, '20', STR_PAD_RIGHT), 0, 44);
        $this->beConstructedWith(hex2bin(substr_replace($this->defaultHex, str_pad('', 52, '20'), 44, 52)));
        $this->getDialInData()->shouldBeNull();
        $this->getTSPropertyArray()->shouldReturnAnInstanceOf('LdapTools\\Utilities\\TSPropertyArray');
        $this->toBinary()->shouldEqual(hex2bin($expected));
    }