-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85df4db
commit 79ef707
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
use Crwlr\QueryString\Query; | ||
|
||
test('Duplicate query string keys are correctly converted to arrays', function () { | ||
expect(Query::fromString('test=1&test2=2&test=2&test[]=3')->toArray()) | ||
->toEqual([ | ||
'test' => [1, 2, 3], | ||
'test2' => 2, | ||
]); | ||
}); |