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\Actor;
class ActorTest extends TestCase
{
public function testGetRoles(): void
$roles = ['user', 'admin'];
/** @var ActorInterface $actor */
$actor = new Actor($roles);
$this->assertEquals($roles, $actor->getRoles());
}