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.
23 lines
485 B
PHP
23 lines
485 B
PHP
--TEST--
|
|
Memcached::appendByKey()
|
|
--SKIPIF--
|
|
<?php include "skipif.inc";?>
|
|
--FILE--
|
|
<?php
|
|
include dirname(__FILE__) . '/config.inc';
|
|
$m = memc_get_instance ();
|
|
$m->setOption(Memcached::OPT_COMPRESSION, false);
|
|
|
|
var_dump($m->setByKey('foo', 'foo', 'bar', 10));
|
|
echo $m->getResultMessage(), "\n";
|
|
var_dump($m->appendByKey('foo', 'foo', 'baz'));
|
|
echo $m->getResultMessage(), "\n";
|
|
var_dump($m->getByKey('foo', 'foo'));
|
|
|
|
--EXPECT--
|
|
bool(true)
|
|
SUCCESS
|
|
bool(true)
|
|
SUCCESS
|
|
string(6) "barbaz"
|