Skip to content
Permalink
Browse files

Inline condition and fix skip check.

  • Loading branch information...
markstory committed Aug 13, 2017
1 parent 891406b commit 0d4c2801dc3b0d1715ed321dbfb4983bba4e71d4
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Cache/Engine/MemcachedEngine.php
  2. +1 −1 tests/TestCase/Cache/Engine/MemcachedEngineTest.php
@@ -174,7 +174,7 @@ public function init(array $config = [])
if ($this->_config['username'] !== null && $this->_config['password'] !== null) {
$sasl = method_exists($this->_Memcached, 'setSaslAuthData');
if (!$sasl) {
if (!method_exists($this->_Memcached, 'setSaslAuthData')) {
throw new InvalidArgumentException(
'Memcached extension is not built with SASL support'
);
@@ -345,7 +345,7 @@ public function testIgbinarySerializerThrowException()
public function testSaslAuthException()
{
$this->skipIf(
method_exists('setSaslAuthData', Memcached::class),
method_exists(Memcached::class, 'setSaslAuthData'),
'Cannot test exception when sasl has been compiled in.'
);
$MemcachedEngine = new MemcachedEngine();

0 comments on commit 0d4c280

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