Просмотр исходного кода

Fixes wrong exceptions in Audioscrobbler unit test

Frank Brückner 10 лет назад
Родитель
Сommit
ac25b834ca
1 измененных файлов с 2 добавлено и 2 удалено
  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());
         }