mirror of
https://github.com/halaxa/json-machine.git
synced 2025-07-18 04:51:16 +02:00
18 lines
445 B
PHP
18 lines
445 B
PHP
<?php
|
|
|
|
namespace JsonMachineTest\Exception;
|
|
|
|
use JsonMachine\Exception\SyntaxErrorException;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class SyntaxErrorExceptionTest extends TestCase
|
|
{
|
|
public function testMessageContainsDataFromConstructor()
|
|
{
|
|
$exception = new SyntaxErrorException('msg 42', '24');
|
|
|
|
$this->assertContains('msg 42', $exception->getMessage());
|
|
$this->assertContains('24', $exception->getMessage());
|
|
}
|
|
}
|