for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TheCodingMachine\GraphQL\Controllers\Annotations;
use BadMethodCallException;
use PHPUnit\Framework\TestCase;
class RightTest extends TestCase
{
public function testException()
$this->expectException(BadMethodCallException::class);
$this->expectExceptionMessage('The @Right annotation must be passed a right name. For instance: "@Right(\'my_right\')"');
new Right([]);
}