Skip to content

Commit f66459a

Browse files
committed
@Covers annotations required
1 parent a456889 commit f66459a

File tree

5 files changed

+13
-2
lines changed

5 files changed

+13
-2
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
'single_line_throw' => false,
1414
'unary_operator_spaces' => false,
1515
'visibility_required' => false,
16+
'php_unit_test_class_requires_covers' => true,
1617
])
1718
->setFinder($finder)
1819
;

test/JsonMachineTest/Exception/SyntaxErrorExceptionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use JsonMachine\Exception\SyntaxErrorException;
66
use PHPUnit\Framework\TestCase;
77

8+
/**
9+
* @covers \JsonMachine\Exception\SyntaxErrorException
10+
*/
811
class SyntaxErrorExceptionTest extends TestCase
912
{
1013
public function testMessageContainsDataFromConstructor()

test/JsonMachineTest/JsonDecoder/DecodingErrorTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
use JsonMachine\JsonDecoder\DecodingError;
66
use PHPUnit\Framework\TestCase;
77

8+
/**
9+
* @covers \JsonMachine\JsonDecoder\DecodingError
10+
*/
811
class DecodingErrorTest extends TestCase
912
{
10-
1113
public function testGetMalformedJson()
1214
{
1315
$decodingError = new DecodingError('"json\"', null);

test/JsonMachineTest/JsonDecoder/InvalidResultTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use JsonMachine\JsonDecoder\InvalidResult;
66
use PHPUnit\Framework\TestCase;
77

8+
/**
9+
* @covers \JsonMachine\JsonDecoder\InvalidResult
10+
*/
811
class InvalidResultTest extends TestCase
912
{
1013
public function testGetErrorMessage()

test/JsonMachineTest/JsonDecoder/ValidResultTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
use JsonMachine\JsonDecoder\ValidResult;
66
use PHPUnit\Framework\TestCase;
77

8+
/**
9+
* @covers \JsonMachine\JsonDecoder\ValidResult
10+
*/
811
class ValidResultTest extends TestCase
912
{
10-
1113
public function testGetValue()
1214
{
1315
$result = new ValidResult('Value X');

0 commit comments

Comments
 (0)