File manager - Edit - /home/autoph/public_html/projects/api/vendor/halaxa/json-machine/test/JsonMachineTest/JsonDecoder/DecodingErrorTest.php
Back
<?php declare(strict_types=1); 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); $this->assertSame('"json\"', $decodingError->getMalformedJson()); } public function testGetErrorMessage() { $decodingError = new DecodingError('', 'something bad happened'); $this->assertSame('something bad happened', $decodingError->getErrorMessage()); } }
| ver. 1.4 |
.
| PHP 8.0.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings