spec\LdapTools\Operation\BatchModifyOperationSpec::it_should_mask_password_values_in_the_log_formatted_array PHP Метод

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

    function it_should_mask_password_values_in_the_log_formatted_array()
    {
        $batch = new BatchCollection();
        $batch->add(new Batch(Batch::TYPE['REMOVE'], 'unicodePwd', 'password'));
        $batch->add(new Batch(Batch::TYPE['ADD'], 'userPassword', 'correct horse battery staple'));
        $batch->add(new Batch(Batch::TYPE['REPLACE'], 'givenName', 'Jack'));
        $this->setBatchCollection($batch);
        $logArray = $batch->getBatchArray();
        $logArray[0]['values'] = ['******'];
        $logArray[1]['values'] = ['******'];
        $this->getLogArray()->shouldContain(print_r($logArray, true));
    }