Added test to toBeList

This commit is contained in:
Morten Harders
2024-05-21 08:15:32 +02:00
parent 55f6b5696e
commit 3c6c89a6ad

View File

@ -5,6 +5,7 @@ use PHPUnit\Framework\ExpectationFailedException;
test('pass', function () { test('pass', function () {
expect([1, 2, 3])->toBeList(); expect([1, 2, 3])->toBeList();
expect(['a' => 1, 'b' => 2, 'c' => 3])->not->toBeList(); expect(['a' => 1, 'b' => 2, 'c' => 3])->not->toBeList();
expect('1, 2, 3')->not->toBeList();
}); });
test('failures', function () { test('failures', function () {