Skip to content
Permalink
Browse files

Check for existing method on different Memcached instance.

Seeting the object will not correctly execute init()
  • Loading branch information...
ceeram committed Sep 24, 2014
1 parent 6e71077 commit 2a086bd765084981fc5f340e124b1ce56f05f034
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/TestCase/Cache/Engine/MemcachedEngineTest.php
@@ -351,7 +351,7 @@ public function testIgbinarySerializerThrowException() {
* @return void
*/
public function testSaslAuthException() {
$Memcached = new TestMemcachedEngine();
$MemcachedEngine = new TestMemcachedEngine();
$config = array(
'engine' => 'Memcached',
'servers' => array('127.0.0.1:11211'),
@@ -360,16 +360,16 @@ public function testSaslAuthException() {
'password' => 'password'
);
$Memcached->setMemcached(new Memcached());
$Memcached = new Memcached();
$this->skipIf(
method_exists($Memcached->getMemcached(), 'setSaslAuthData'),
method_exists($Memcached, 'setSaslAuthData'),
'Memcached extension is installed with SASL support'
);
$this->setExpectedException(
'InvalidArgumentException', 'Memcached extension is not build with SASL support'
);
$Memcached->init($config);
$MemcachedEngine->init($config);
}
/**

0 comments on commit 2a086bd

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