--TEST-- Memcache class should be inheritable --SKIPIF-- --FILE-- connect($host, $port); $t->foo(); var_dump($t); echo "Done\n"; ?> --EXPECTF-- foo object(test)%s%d) { ["connection"]=> resource(%d) of type (memcache connection) } Done