Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding tests for unix socket support in Memcache.

Refs GH#194
  • Loading branch information...
commit a61bd5e3e8ef6dffb71ef3ab22f20836f2918f18 1 parent b1c4b57
@markstory markstory authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 cake/tests/cases/libs/cache/memcache.test.php
View
11 cake/tests/cases/libs/cache/memcache.test.php
@@ -188,6 +188,17 @@ function testParseServerStringNonLatin() {
}
/**
+ * test unix sockets.
+ *
+ * @return void
+ */
+ function testParseServerStringUnix() {
+ $Memcache =& new TestMemcacheEngine();
+ $result = $Memcache->parseServerString('unix:///path/to/memcached.sock');
+ $this->assertEqual($result, array('unix:///path/to/memcached.sock', 0));
+ }
+
+/**
* testReadAndWriteCache method
*
* @access public
Please sign in to comment.
Something went wrong with that request. Please try again.