for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Spiral Framework.
*
* @license MIT
* @author Anton Titov (Wolfy-J)
*/
declare(strict_types=1);
namespace Spiral\Tests\Security\Actors;
use PHPUnit\Framework\TestCase;
use Spiral\Security\ActorInterface;
use Spiral\Security\Actor\Guest;
class GuestTest extends TestCase
{
public function testGetRoles(): void
/** @var ActorInterface $actor */
$actor = new Guest();
$this->assertEquals([Guest::ROLE], $actor->getRoles());
}