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 FailWithTest extends TestCase
{
public function testException()
$this->expectException(BadMethodCallException::class);
$this->expectExceptionMessage('The @FailWith annotation must be passed a defaultValue. For instance: "@FailWith(null)"');
new FailWith([]);
}