Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/demo.intellicart.co/vendor/intervention/httpauth/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/demo.intellicart.co/vendor/intervention/httpauth/tests/DirectiveTest.php
<?php

namespace Intervention\HttpAuth\Test;

use Intervention\HttpAuth\Directive;
use PHPUnit\Framework\TestCase;

class DirectiveTest extends TestCase
{
    public function testConstructor()
    {
        $directive = new Directive('foo');
        $this->assertInstanceOf(Directive::class, $directive);
    }

    public function testFormat()
    {
        $directive = new Directive('test', ['a' => 'foo', 'b' => 'bar', 'c' => 'baz']);
        $this->assertEquals('Test a="foo", b="bar", c="baz"', $directive->format());
    }

    public function testToString()
    {
        $directive = new Directive('test', ['a' => 'foo', 'b' => 'bar', 'c' => 'baz']);
        $directive = (string) $directive;
        $this->assertEquals('Test a="foo", b="bar", c="baz"', $directive);
    }
}

Spamworldpro Mini