mirror of
https://github.com/halaxa/json-machine.git
synced 2025-01-17 04:58:16 +01:00
dropped compatibility with older phpunit
This commit is contained in:
parent
6b2b6e2320
commit
05dc2eb0fd
@ -16,13 +16,7 @@ class SyntaxErrorExceptionTest extends TestCase
|
|||||||
{
|
{
|
||||||
$exception = new SyntaxErrorException('msg 42', 24);
|
$exception = new SyntaxErrorException('msg 42', 24);
|
||||||
|
|
||||||
$assertMethod = 'assertContains';
|
$this->assertStringContainsString('msg 42', $exception->getMessage());
|
||||||
/* @phpstan-ignore function.alreadyNarrowedType */
|
$this->assertStringContainsString('24', $exception->getMessage());
|
||||||
if (method_exists($this, 'assertStringContainsString')) {
|
|
||||||
$assertMethod = 'assertStringContainsString';
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->$assertMethod('msg 42', $exception->getMessage());
|
|
||||||
$this->$assertMethod('24', $exception->getMessage());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user