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.
19 lines
336 B
19 lines
336 B
--TEST--
|
|
array_method: 1
|
|
--FILE--
|
|
<?php
|
|
|
|
function main()
|
|
{
|
|
require __DIR__ . '/../../../src/Assert.php';
|
|
|
|
$array = [1999, '2025'];
|
|
Assert::true($array->contains(1999));
|
|
Assert::true($array->contains(2025));
|
|
$strict = true;
|
|
Assert::false($array->contains(2025, $strict));
|
|
echo "done\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
done
|
|
|