DummyStateHandlerTest.php in Auth0 Single Sign On 8.2
File
vendor/auth0/auth0-php/tests/API/Helpers/State/DummyStateHandlerTest.php
View source
<?php
namespace Auth0\Tests\Api\Helpers\State;
use Auth0\SDK\API\Helpers\State\DummyStateHandler;
class DummyStateHandlerTest extends \PHPUnit_Framework_TestCase {
private $state;
public function __construct() {
parent::__construct();
$this->state = new DummyStateHandler();
}
public function testStateIssuedCorrectly() {
$this
->assertNull($this->state
->issue());
}
public function testStateValidatesCorrectly() {
$this
->assertTrue($this->state
->validate(uniqid()));
$this
->assertTrue($this->state
->validate(uniqid()));
}
}