mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 09:02:10 +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.
31 lines
673 B
PHP
31 lines
673 B
PHP
--TEST--
|
|
Memcached::getMulti() partial error
|
|
--SKIPIF--
|
|
<?php include "skipif.inc";?>
|
|
--FILE--
|
|
<?php
|
|
include dirname(__FILE__) . '/config.inc';
|
|
$m = memc_get_instance ();
|
|
|
|
$data = array();
|
|
for ($i = 0; $i < 1000; $i++) {
|
|
$data['key' . $i] = 'value' . $i;
|
|
}
|
|
var_dump($m->setMulti($data));
|
|
|
|
/* make sure that all keys are not there */
|
|
var_dump(count($m->deleteMulti(array("key1", "key2"))) == 2);
|
|
|
|
$v = $m->getMulti(array_keys($data));
|
|
var_dump(is_array($v));
|
|
var_dump(count($v) < count($data));
|
|
var_dump($m->getResultCode() == Memcached::RES_SUCCESS ||
|
|
$m->getResultCode() == Memcached::RES_SOME_ERRORS);
|
|
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|