for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TheCodingMachine\GraphQL\Controllers\Annotations;
use PHPUnit\Framework\TestCase;
use RuntimeException;
class TypeTest extends TestCase
{
public function testException()
$type = new Type([]);
$this->expectException(RuntimeException::class);
$this->expectExceptionMessage('Empty class for @Type annotation. You MUST create the Type annotation object using the GraphQL-Controllers AnnotationReader');
$type->getClass();
}