Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit ac25b83

Browse files
committed
Fixes wrong exceptions in Audioscrobbler unit test
1 parent c2f2bfe commit ac25b83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Zend/Service/Audioscrobbler/AudioscrobblerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testRequestThrowsHttpClientExceptionWithNoUserError()
4646

4747
try {
4848
$response = $as->userGetProfileInformation();
49-
$this->fail('Expected Zend_Service_Technorati_Exception not thrown');
49+
$this->fail('Expected Zend_Http_Client_Exception not thrown');
5050
} catch(Zend_Http_Client_Exception $e) {
5151
$this->assertContains("No user exists with this name", $e->getMessage());
5252
}
@@ -60,7 +60,7 @@ public function testRequestThrowsHttpClientExceptionWithoutSuccessfulResponse()
6060

6161
try {
6262
$response = $as->userGetProfileInformation();
63-
$this->fail('Expected Zend_Service_Technorati_Exception not thrown');
63+
$this->fail('Expected Zend_Http_Client_Exception not thrown');
6464
} catch(Zend_Http_Client_Exception $e) {
6565
$this->assertContains("404", $e->getMessage());
6666
}

0 commit comments

Comments
 (0)