mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 17:12:22 +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.
33 lines
588 B
PHP
33 lines
588 B
PHP
--TEST--
|
|
Memcached::getMultiByKey()
|
|
--SKIPIF--
|
|
<?php include "skipif.inc";?>
|
|
--FILE--
|
|
<?php
|
|
include dirname(__FILE__) . '/config.inc';
|
|
$m = memc_get_instance ();
|
|
|
|
$m->set('foo', 1, 10);
|
|
$m->set('bar', 2, 10);
|
|
$m->delete('baz');
|
|
|
|
var_dump($m->getMultiByKey('foo', array('foo', 'bar', 'baz'), Memcached::GET_PRESERVE_ORDER));
|
|
echo $m->getResultMessage(), "\n";
|
|
|
|
var_dump($m->getMultiByKey('foo', array(), Memcached::GET_PRESERVE_ORDER));
|
|
echo $m->getResultMessage(), "\n";
|
|
|
|
--EXPECT--
|
|
array(3) {
|
|
["foo"]=>
|
|
int(1)
|
|
["bar"]=>
|
|
int(2)
|
|
["baz"]=>
|
|
NULL
|
|
}
|
|
SUCCESS
|
|
array(0) {
|
|
}
|
|
NOT FOUND
|