![]() 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.cartinsight.co/vendor/intervention/httpauth/tests/ |
<?php namespace Intervention\HttpAuth\Test; use Intervention\HttpAuth\Key; use PHPUnit\Framework\TestCase; class KeyTest extends TestCase { public function testSetGet() { $key = new Key(); $this->assertNull($key->getRealm()); $this->assertNull($key->getUsername()); $this->assertNull($key->getPassword()); $this->assertNull($key->getQop()); $this->assertNull($key->getNonce()); $this->assertNull($key->getOpaque()); $this->assertNull($key->getUri()); $this->assertNull($key->getNc()); $this->assertNull($key->getCnonce()); $this->assertNull($key->getResponse()); $key->setProperty('realm', 'testRealm'); $key->setProperty('username', 'testUsername'); $key->setProperty('password', 'testPassword'); $key->setProperty('qop', 'testQop'); $key->setProperty('nonce', 'testNonce'); $key->setProperty('opaque', 'testOpaque'); $key->setProperty('uri', 'testUri'); $key->setProperty('nc', 'testNc'); $key->setProperty('cnonce', 'testCnonce'); $key->setProperty('response', 'testResponse'); $this->assertEquals('testRealm', $key->getRealm()); $this->assertEquals('testUsername', $key->getUsername()); $this->assertEquals('testPassword', $key->getPassword()); $this->assertEquals('testQop', $key->getQop()); $this->assertEquals('testNonce', $key->getNonce()); $this->assertEquals('testOpaque', $key->getOpaque()); $this->assertEquals('testUri', $key->getUri()); $this->assertEquals('testNc', $key->getNc()); $this->assertEquals('testCnonce', $key->getCnonce()); $this->assertEquals('testResponse', $key->getResponse()); } }