[TESTS] Fix tests

This commit is contained in:
2022-10-19 22:39:17 +01:00
parent 2fd46ca886
commit 053bc38792
12 changed files with 89 additions and 50 deletions

View File

@@ -185,7 +185,7 @@ class FormattingTest extends WebTestCase
public function testToArray()
{
static::assertThrows(Exception::class, fn () => Formatting::toArray('foo', $a, '')); // @phpstan-ignore-line
static::assertThrows(InvalidArgumentException::class, fn () => Formatting::toArray('foo', $a, '')); // @phpstan-ignore-line
static::assertTrue(Formatting::toArray('', $a));
static::assertSame([], $a);