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.
20 lines
360 B
20 lines
360 B
--TEST--
|
|
string_method: marshal
|
|
--FILE--
|
|
<?php
|
|
|
|
function main()
|
|
{
|
|
require __DIR__ . '/../../../src/Assert.php';
|
|
|
|
$array = [];
|
|
$array->set('a', 'marshal_test_value');
|
|
$array->set('b', 100);
|
|
$array->set('c', 'system_info');
|
|
|
|
$str = $array->marshal();
|
|
Assert::notEmpty($str);
|
|
Assert::eq($str->unmarshal(), $array);
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
|