mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 00:52:18 +01:00
Tests in the experimental/ folder were not executed on CI. The ones that work move up, the few that remain in experimental/ need further investigation to get working or remove.
26 lines
445 B
PHP
26 lines
445 B
PHP
--TEST--
|
|
Memcached::getDelayedByKey() with bad server
|
|
--SKIPIF--
|
|
<?php include "skipif.inc";?>
|
|
--FILE--
|
|
<?php
|
|
$m = new Memcached();
|
|
$m->addServer('localhost', 48813, 1);
|
|
|
|
$data = array(
|
|
'foo' => 'foo-data',
|
|
'bar' => 'bar-data',
|
|
'baz' => 'baz-data',
|
|
'lol' => 'lol-data',
|
|
'kek' => 'kek-data',
|
|
);
|
|
|
|
function myfunc() {
|
|
$datas = func_get_args();
|
|
var_dump($datas);
|
|
}
|
|
|
|
$m->getDelayedByKey('kef', array_keys($data), false, 'myfunc');
|
|
|
|
--EXPECT--
|