1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-07-18 13:01:17 +02:00
Files
json-machine/test/JsonMachineTest/Exception/SyntaxErrorExceptionTest.php
2022-02-03 21:56:47 +01:00

23 lines
534 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->assertContains('msg 42', $exception->getMessage());
$this->assertContains('24', $exception->getMessage());
}
}