Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.5

Request #15855 Mock out unit tests
Submitted: 2009-02-01 15:36 UTC
From: doconnor Assigned: sergiosgc
Status: Wont fix Package: XML_RPC2 (version CVS)
PHP Version: 5.2.6 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2009-02-01 15:36 UTC] doconnor (Daniel O'Connor)
Description: ------------ A lot of tests are failing because the servers they hit don't exist any more, ie; time.xmlrpc.com Simply swapping to HTTP_Request2 (if possible, its php5 only) will get you an E_STRICT HTTP_Request package which is easy to mock with.

Comments

 [2009-02-01 16:24 UTC] doconnor (Daniel O'Connor)
I culled off two tests that don't currently work (pear / userland); and the remaining ones skip appropriately when the service isn't available.
 [2009-02-01 16:27 UTC] doconnor (Daniel O'Connor)
Request #15068 covers the 'swap to http_request2' bit
 [2009-02-03 19:20 UTC] doconnor (Daniel O'Connor)
-Type: Bug +Type: Feature/Change Request
 [2011-02-25 04:18 UTC] sergiosgc (Sérgio Carvalho)
-Status: Open +Status: Closed -Assigned To: +Assigned To: sergiosgc
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2011-02-26 23:10 UTC] sergiosgc (Sérgio Carvalho)
-Status: Closed +Status: Wont fix
I misread the bug on the first pass. I though the idea was to *allow* mockups, not to change the existing interoperability tests into mockups. The whole idea of testing against external XML-RPC servers is to test the full interoperability chain against different implementations of XML-RPC. Mockups undermine such "whole-stack" tests, so I don't see the point of changing existing tests into mockups. External tests require functioning XML-RPC servers. I understand that. But external RPC servers are fundamental for this kind of testing.