mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 00:52:18 +01:00
24 lines
470 B
PHP
24 lines
470 B
PHP
--TEST--
|
|
Test that correct return value is returned
|
|
--SKIPIF--
|
|
<?php include "skipif.inc";?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$memcached = new Memcached();
|
|
$memcached->addServer('localhost', 5555); // Server should not exist
|
|
|
|
$result = $memcached->get('foo_not_exists');
|
|
var_dump ($result === Memcached::GET_ERROR_RETURN_VALUE);
|
|
|
|
$result = $memcached->get('foo_not_exists');
|
|
var_dump ($result === Memcached::GET_ERROR_RETURN_VALUE);
|
|
|
|
echo "OK\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
OK
|