1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-07-16 20:16:25 +02:00
Files
json-machine/test/JsonMachineTest/Exception/SyntaxErrorExceptionTest.php
2024-11-22 13:13:38 +01:00

23 lines
556 B
PHP

<?php
declare(strict_types=1);
namespace JsonMachineTest\Exception;
use JsonMachine\Exception\SyntaxErrorException;
use PHPUnit\Framework\TestCase;
/**
* @covers \JsonMachine\Exception\SyntaxErrorException
*/
class SyntaxErrorExceptionTest extends TestCase
{
public function testMessageContainsDataFromConstructor()
{
$exception = new SyntaxErrorException('msg 42', 24);
$this->assertStringContainsString('msg 42', $exception->getMessage());
$this->assertStringContainsString('24', $exception->getMessage());
}
}