Files
php-memcached/tests/getmulti_bykey.phpt
Pavel Djundik 7348cc11f7 Move working tests up a folder (#503)
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.
2023-04-27 08:35:07 -07:00

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