Skip to content

Commit 4e74262

Browse files
committed
Fixing code coverage
1 parent 8cad83f commit 4e74262

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<testsuites>
1515
<testsuite name="GraphQLite Test Suite">
1616
<directory>./tests/</directory>
17+
<exclude>./tests/dependencies/</exclude>
1718
</testsuite>
1819
</testsuites>
1920

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
4+
namespace TheCodingMachine\GraphQLite\Fixtures;
5+
6+
use TheCodingMachine\GraphQLite\Annotations\Query;
7+
8+
// An abstract class to test that the GlobControllerQueryProvider does not try anything with it.
9+
abstract class AbstractTestController
10+
{
11+
/**
12+
* @Query()
13+
*/
14+
public function test(): string
15+
{
16+
return 'foo';
17+
}
18+
}

tests/Fixtures/EmptyFile.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?php
2+
// Used to check that the GlobControllerQueryProvider can manage empty classes

0 commit comments

Comments
 (0)