--TEST-- memcache_add_server() --SKIPIF-- --FILE-- getMessage()}\n"; } try { var_dump(memcache_add_server($memcache, new stdclass, array())); } catch (TypeError $e) { echo "{$e->getMessage()}\n"; } echo "Done\n"; ?> --EXPECTF-- bool(true) bool(true) memcache_add_server(): Argument #1 ($memcache) must be of type Memcache, stdClass given memcache_add_server(): Argument #2 ($host) must be of type string, stdClass given Done