1
0
Fork 0
mirror of https://github.com/archtechx/helpers.git synced 2025-12-12 04:04:04 +00:00
This commit is contained in:
Samuel Štancl 2021-10-28 19:37:04 +02:00
parent 2945c59e92
commit 0d63a5b79c
12 changed files with 97 additions and 109 deletions

View 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']);