Upgrade to PHPUnit 3.5.

This commit is contained in:
Daniele Alessandri
2011-03-27 09:15:38 +02:00
parent b007b753f5
commit 0f751cabcb
5 changed files with 50 additions and 49 deletions
+4 -4
View File
@@ -129,7 +129,7 @@ class RC {
catch (Predis\ServerException $exception) {
$thrownException = $exception;
}
$testcaseInstance->assertType('Predis\ServerException', $thrownException);
$testcaseInstance->assertInstanceOf('Predis\ServerException', $thrownException);
if (isset($expectedMessage)) {
$testcaseInstance->assertEquals($expectedMessage, $thrownException->getMessage());
}
@@ -143,7 +143,7 @@ class RC {
catch (Predis\ClientException $exception) {
$thrownException = $exception;
}
$testcaseInstance->assertType('Predis\ClientException', $thrownException);
$testcaseInstance->assertInstanceOf('Predis\ClientException', $thrownException);
if (isset($expectedMessage)) {
$testcaseInstance->assertEquals($expectedMessage, $thrownException->getMessage());
}
@@ -157,7 +157,7 @@ class RC {
catch (Predis\CommunicationException $exception) {
$thrownException = $exception;
}
$testcaseInstance->assertType('Predis\CommunicationException', $thrownException);
$testcaseInstance->assertInstanceOf('Predis\CommunicationException', $thrownException);
if (isset($expectedMessage)) {
$testcaseInstance->assertEquals($expectedMessage, $thrownException->getMessage());
}
@@ -171,7 +171,7 @@ class RC {
catch (Predis\AbortedMultiExec $exception) {
$thrownException = $exception;
}
$testcaseInstance->assertType('Predis\AbortedMultiExec', $thrownException);
$testcaseInstance->assertInstanceOf('Predis\AbortedMultiExec', $thrownException);
}
public static function pushTailAndReturn(Predis\Client $client, $keyName, Array $values, $wipeOut = 0) {