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
11
tests/Pest/VariadicArrayTest.php
Normal file
11
tests/Pest/VariadicArrayTest.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
it('returns the inner array if a simple array is supplied')
|
||||
->expect(
|
||||
variadic_array([['foo', 'bar']])
|
||||
)->toBe(['foo', 'bar']);
|
||||
|
||||
it('returns the array if a non-simple array is supplied')
|
||||
->expect(
|
||||
variadic_array(['foo', 'bar'])
|
||||
)->toBe(['foo', 'bar']);
|
||||
Loading…
Add table
Add a link
Reference in a new issue