dto = new CalltouchCreateRequestDto(); $this->dto->regionId = 91; $this->dto->requestNumber = 'test_' . time(); $this->dto->subject = 'Тестовая заявка'; $this->dto->requestUrl = 'CalltouchClientServiceTest'; $this->dto->sessionId = null; $this->dto->phoneNumber = '79996243200'; $this->dto->email = 'yahve1989@yandex.ru'; $this->dto->fio = 'Тест Public API'; $this->dto->addTags = ['public_api']; $this->dto->requestDate = date('Y-m-d'); $this->dto->customSources = [ 'source' => '', 'medium' => '', 'campaign' => '', 'term' => '' ]; $ctUrl = $_ENV['CT_URL']; $apiClient = $_ENV['API_CLIENT']; $params = $_ENV['CT_PARAMS']; $this->service = new CalltouchClientService($apiClient, $ctUrl , $params); } public function testSend(): void { # -- 17 числа узнать документы $response = $this->service->requestCreate($this->dto); var_dump($response, $this->dto); die(); // $plaintext = 'Hello, world!'; // $encrypted = $this->service->encrypt($plaintext); // $decrypted = $this->service->decrypt($encrypted); // $this->assertNotEquals($plaintext, $encrypted); // $this->assertEquals($plaintext, $decrypted); } }