Files
php-memcached/tests/prepend_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

23 lines
486 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->prependByKey('foo', 'foo', 'baz'));
echo $m->getResultMessage(), "\n";
var_dump($m->getByKey('foo', 'foo'));
--EXPECT--
bool(true)
SUCCESS
bool(true)
SUCCESS
string(6) "bazbar"