Skip to content
Permalink
Browse files

Adding tests for unix socket support in Memcache.

Refs GH#194
  • Loading branch information...
markstory committed Sep 7, 2011
1 parent b1c4b57 commit a61bd5e3e8ef6dffb71ef3ab22f20836f2918f18
Showing with 11 additions and 0 deletions.
  1. +11 −0 cake/tests/cases/libs/cache/memcache.test.php
@@ -187,6 +187,17 @@ function testParseServerStringNonLatin() {
$this->assertEqual($result, array('sülül', '1111'));
}
/**
* 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
*

0 comments on commit a61bd5e

Please sign in to comment.
You can’t perform that action at this time.