Browse Source

Fix tests.

ADmad 11 years ago
parent
commit
63a215b329
1 changed files with 5 additions and 5 deletions
  1. 5 5
      tests/TestCase/Cache/Engine/MemcachedEngineTest.php

+ 5 - 5
tests/TestCase/Cache/Engine/MemcachedEngineTest.php

@@ -177,7 +177,7 @@ class MemcachedEngineTest extends TestCase {
 		);
 
 		$this->setExpectedException(
-			'Cake\Core\Exception\Exception', 'invalid_serializer is not a valid serializer engine for Memcached'
+			'InvalidArgumentException', 'invalid_serializer is not a valid serializer engine for Memcached'
 		);
 		$Memcached->init($config);
 	}
@@ -289,7 +289,7 @@ class MemcachedEngineTest extends TestCase {
 		);
 
 		$this->setExpectedException(
-			'Cake\Core\Exception\Exception', 'Memcached extension is not compiled with json support'
+			'InvalidArgumentException', 'Memcached extension is not compiled with json support'
 		);
 		$Memcached->init($config);
 	}
@@ -314,7 +314,7 @@ class MemcachedEngineTest extends TestCase {
 		);
 
 		$this->setExpectedException(
-			'Cake\Core\Exception\Exception', 'msgpack is not a valid serializer engine for Memcached'
+			'InvalidArgumentException', 'msgpack is not a valid serializer engine for Memcached'
 		);
 		$Memcached->init($config);
 	}
@@ -339,7 +339,7 @@ class MemcachedEngineTest extends TestCase {
 		);
 
 		$this->setExpectedException(
-			'Cake\Core\Exception\Exception', 'Memcached extension is not compiled with igbinary support'
+			'InvalidArgumentException', 'Memcached extension is not compiled with igbinary support'
 		);
 		$Memcached->init($config);
 	}
@@ -366,7 +366,7 @@ class MemcachedEngineTest extends TestCase {
 		);
 
 		$this->setExpectedException(
-			'Cake\Core\Exception\Exception', 'Memcached extension is not build with SASL support'
+			'InvalidArgumentException', 'Memcached extension is not build with SASL support'
 		);
 		$Memcached->init($config);
 	}