Permalink
Browse files

Adding tests for unix socket support in Memcache.

Refs GH#194
  • Loading branch information...
1 parent b1c4b57 commit a61bd5e3e8ef6dffb71ef3ab22f20836f2918f18 @markstory markstory committed Sep 7, 2011
Showing with 11 additions and 0 deletions.
  1. +11 −0 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

0 comments on commit a61bd5e

Please sign in to comment.