1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-01-29 10:28:09 +01:00

@covers annotations required

This commit is contained in:
Filip Halaxa 2022-02-03 21:41:58 +01:00
parent a456889ce2
commit f66459a869
5 changed files with 13 additions and 2 deletions

View File

@ -13,6 +13,7 @@ return $config->setRules([
'single_line_throw' => false,
'unary_operator_spaces' => false,
'visibility_required' => false,
'php_unit_test_class_requires_covers' => true,
])
->setFinder($finder)
;

View File

@ -5,6 +5,9 @@ namespace JsonMachineTest\Exception;
use JsonMachine\Exception\SyntaxErrorException;
use PHPUnit\Framework\TestCase;
/**
* @covers \JsonMachine\Exception\SyntaxErrorException
*/
class SyntaxErrorExceptionTest extends TestCase
{
public function testMessageContainsDataFromConstructor()

View File

@ -5,9 +5,11 @@ namespace JsonMachineTest\JsonDecoder;
use JsonMachine\JsonDecoder\DecodingError;
use PHPUnit\Framework\TestCase;
/**
* @covers \JsonMachine\JsonDecoder\DecodingError
*/
class DecodingErrorTest extends TestCase
{
public function testGetMalformedJson()
{
$decodingError = new DecodingError('"json\"', null);

View File

@ -5,6 +5,9 @@ namespace JsonMachineTest\JsonDecoder;
use JsonMachine\JsonDecoder\InvalidResult;
use PHPUnit\Framework\TestCase;
/**
* @covers \JsonMachine\JsonDecoder\InvalidResult
*/
class InvalidResultTest extends TestCase
{
public function testGetErrorMessage()

View File

@ -5,9 +5,11 @@ namespace JsonMachineTest\JsonDecoder;
use JsonMachine\JsonDecoder\ValidResult;
use PHPUnit\Framework\TestCase;
/**
* @covers \JsonMachine\JsonDecoder\ValidResult
*/
class ValidResultTest extends TestCase
{
public function testGetValue()
{
$result = new ValidResult('Value X');