Browse Source

[TESTS] Fixed failing Technorati tests

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16941 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew 16 years ago
parent
commit
7a978fd104
2 changed files with 3 additions and 9 deletions
  1. 1 2
      tests/Zend/Service/AllTests.php
  2. 2 7
      tests/Zend/Service/Technorati/TestCase.php

+ 1 - 2
tests/Zend/Service/AllTests.php

@@ -145,8 +145,7 @@ class Zend_Service_AllTests
         $suite->addTest(Zend_Service_Simpy_AllTests::suite());
         $suite->addTestSuite('Zend_Service_SlideShareTest');
         $suite->addTest(Zend_Service_StrikeIron_AllTests::suite());
-        // Commenting out; when run with full ZF suite, these fail
-        // $suite->addTest(Zend_Service_Technorati_AllTests::suite());
+        $suite->addTest(Zend_Service_Technorati_AllTests::suite());
         $suite->addTestSuite('Zend_Service_TwitterTest');
         $suite->addTestSuite('Zend_Service_TwitterSearchTest');
         $suite->addTest(Zend_Service_Yahoo_AllTests::suite());

+ 2 - 7
tests/Zend/Service/Technorati/TestCase.php

@@ -72,13 +72,8 @@ class Zend_Service_Technorati_TestCase extends PHPUnit_Framework_TestCase
             return;
         }
 
-        $reflection = new ReflectionClass($className);
-        try {
-            $object = $reflection->newInstanceArgs(array('foo'));
-            $this->fail('Expected Zend_Service_Technorati_Exception not thrown');
-        } catch (Exception $e) {
-            $this->assertContains($match, $e->getMessage());
-        }
+        // This test is unnecessary. PHP type hinting is well tested, and will throw 
+        // catchable fatal errors on invalid argument types. Do nothing here.
     }
 
     protected function _testResultSetItemsInstanceOfResult($resultSetClassName, $args, $resultClassName)