Skip to content

Commit

Permalink
Adding tests for unix socket support in Memcache.
Browse files Browse the repository at this point in the history
Refs GH#194
  • Loading branch information
markstory committed Sep 7, 2011
1 parent b1c4b57 commit a61bd5e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cake/tests/cases/libs/cache/memcache.test.php
Expand Up @@ -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
*
Expand Down

0 comments on commit a61bd5e

Please sign in to comment.