TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
341 B
18 lines
341 B
--TEST--
|
|
string_method: 1
|
|
--FILE--
|
|
<?php
|
|
|
|
function main()
|
|
{
|
|
require __DIR__ . '/../../../src/Assert.php';
|
|
|
|
$str = "first=value&arr[]=foo+bar&arr[]=baz";
|
|
|
|
$output = $str->parseStr();
|
|
Assert::eq($output['first'], 'value');
|
|
Assert::eq($output['arr'][0], 'foo bar');
|
|
Assert::eq($output['arr'][1], 'baz');
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
|