mirror of
https://github.com/archtechx/helpers.git
synced 2025-12-12 04:04:04 +00:00
add code
This commit is contained in:
parent
2945c59e92
commit
0d63a5b79c
12 changed files with 97 additions and 109 deletions
15
tests/Pest/SimpleArrayTest.php
Normal file
15
tests/Pest/SimpleArrayTest.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
test("arrays containing multiple items aren't simple arrays")
|
||||
->expect(is_simple_array(['foo', 'bar']))->toBeFalse()
|
||||
->expect(is_simple_array([['foo'], ['bar']]))->toBeFalse();
|
||||
|
||||
test("arrays containing a non-array aren't simple arrays")
|
||||
->expect(
|
||||
is_simple_array(['foo'])
|
||||
)->toBeFalse();
|
||||
|
||||
test("arrays containing a single array are simple arrays")
|
||||
->expect(
|
||||
is_simple_array([['foo', 'bar']])
|
||||
)->toBeTrue();
|
||||
Loading…
Add table
Add a link
Reference in a new issue