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:
parent
a456889ce2
commit
f66459a869
@ -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)
|
||||
;
|
||||
|
@ -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()
|
||||
|
@ -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);
|
||||
|
@ -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()
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user