Skip to content

Commit 0023777

Browse files
committed
Fixed coverage issue.
1 parent d061292 commit 0023777

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

phpunit.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" ?>
22
<phpunit colors="true">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">src</directory>
6+
</include>
7+
</coverage>
38
<testsuites>
49
<testsuite name="unit-test">
510
<directory>test/src</directory>
611
</testsuite>
712
</testsuites>
8-
<filter>
9-
<whitelist>
10-
<directory suffix=".php">src</directory>
11-
</whitelist>
12-
</filter>
1313
</phpunit>

src/Tracking/Event/RequestEvent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
*
1414
* @author BluePsyduck <bluepsyduck@gmx.com>
1515
* @license http://opensource.org/licenses/GPL-3.0 GPL v3
16+
*
17+
* @codeCoverageIgnore -- Should not need any coverage to begin with
1618
*/
1719
#[Event('request')]
1820
class RequestEvent implements EventInterface

src/Tracking/Event/SearchEvent.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
*
1414
* @author BluePsyduck <bluepsyduck@gmx.com>
1515
* @license http://opensource.org/licenses/GPL-3.0 GPL v3
16+
*
17+
* @codeCoverageIgnore -- Should not need any coverage to begin with
1618
*/
1719
#[Event('search')]
1820
class SearchEvent implements EventInterface

test/src/Middleware/AuthorizationMiddlewareTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @author BluePsyduck <bluepsyduck@gmx.com>
2222
* @license http://opensource.org/licenses/GPL-3.0 GPL v3
23-
* @coversDefaultClass \FactorioItemBrowser\Api\Server\Middleware\AuthorizationMiddleware
23+
* @covers \FactorioItemBrowser\Api\Server\Middleware\AuthorizationMiddleware
2424
*/
2525
class AuthorizationMiddlewareTest extends TestCase
2626
{

0 commit comments

Comments
 (0)