Explorar o código

Fixes wrong exceptions in Audioscrobbler unit test

Frank Brückner %!s(int64=10) %!d(string=hai) anos
pai
achega
ac25b834ca
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      tests/Zend/Service/Audioscrobbler/AudioscrobblerTest.php

+ 2 - 2
tests/Zend/Service/Audioscrobbler/AudioscrobblerTest.php

@@ -46,7 +46,7 @@ class Zend_Service_Audioscrobbler_AudioscrobblerTest extends Zend_Service_Audios
 
         try {
             $response = $as->userGetProfileInformation();
-            $this->fail('Expected Zend_Service_Technorati_Exception not thrown');
+            $this->fail('Expected Zend_Http_Client_Exception not thrown');
         } catch(Zend_Http_Client_Exception $e) {
             $this->assertContains("No user exists with this name", $e->getMessage());
         }
@@ -60,7 +60,7 @@ class Zend_Service_Audioscrobbler_AudioscrobblerTest extends Zend_Service_Audios
 
         try {
             $response = $as->userGetProfileInformation();
-            $this->fail('Expected Zend_Service_Technorati_Exception not thrown');
+            $this->fail('Expected Zend_Http_Client_Exception not thrown');
         } catch(Zend_Http_Client_Exception $e) {
             $this->assertContains("404", $e->getMessage());
         }