mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 09:02:10 +01:00
21 lines
357 B
PHP
21 lines
357 B
PHP
--TEST--
|
|
Test that callback is invoked on new object only once
|
|
--SKIPIF--
|
|
<?php include "skipif.inc";?>
|
|
--FILE--
|
|
<?php
|
|
|
|
function my_func(Memcached $obj, $persistent_id = null)
|
|
{
|
|
echo "Invoked for '{$persistent_id}'\n";
|
|
}
|
|
|
|
$m1 = new Memcached('foobar', 'my_func');
|
|
$m2 = new Memcached('foobar', 'my_func');
|
|
|
|
echo "OK\n";
|
|
|
|
--EXPECT--
|
|
Invoked for 'foobar'
|
|
OK
|