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.
24 lines
392 B
24 lines
392 B
--TEST--
|
|
extends redis
|
|
--FILE--
|
|
<?php
|
|
class MyRedis extends \redis
|
|
{
|
|
public function __construct(?array $options = null)
|
|
{
|
|
parent::__construct($options);
|
|
}
|
|
}
|
|
|
|
function main()
|
|
{
|
|
$o = new MyRedis;
|
|
$o->connect('127.0.0.1', 6379);
|
|
$uuid = uniqid();
|
|
var_dump($o->set('key', $uuid));
|
|
var_dump($o->get('key') === $uuid);
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
|