mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Added test to toBeList
This commit is contained in:
@ -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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user