Skip to content

Commit

Permalink
test: improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
fogrye committed Apr 7, 2024
1 parent 96ee8d8 commit 3692d2e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/Annotations/InputTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

declare(strict_types=1);

namespace TheCodingMachine\GraphQLite\Annotations;

use PHPUnit\Framework\TestCase;
use RuntimeException;

class InputTest extends TestCase
{
public function testException(): void
{
$this->expectException(RuntimeException::class);
$this->expectExceptionMessage('Empty class for #[Input] attribute. You MUST create the Input attribute object using the GraphQLite AnnotationReader');
(new Input())->getClass();
}
}

0 comments on commit 3692d2e

Please sign in to comment.