ZF-2595: Unit test problems

Description


Macintosh:tests weppos$ phpunit --verbose Zend_Service_SimpyTest
PHPUnit 3.2.11 by Sebastian Bergmann.

Zend_Service_SimpyTest
....EEEEE..EEE.E


Time: 01:52

There were 9 errors:

1) testGetTags(Zend_Service_SimpyTest)
Undefined property:  Zend_Service_Simpy_TagSet::$_links
/Users/weppos/Sites/zend.com.framework/trunk/library/Zend/Service/Simpy/TagSet.php:71
/Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/SimpyTest.php:266

2) testRenameTag(Zend_Service_SimpyTest)
Undefined property:  Zend_Service_Simpy_TagSet::$_links
/Users/weppos/Sites/zend.com.framework/trunk/library/Zend/Service/Simpy/TagSet.php:71
/Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/SimpyTest.php:584
/Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/SimpyTest.php:286

3) testSplitTag(Zend_Service_SimpyTest)
Undefined property:  Zend_Service_Simpy_TagSet::$_links
/Users/weppos/Sites/zend.com.framework/trunk/library/Zend/Service/Simpy/TagSet.php:71
/Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/SimpyTest.php:584
/Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/SimpyTest.php:317

4) testMergeTags(Zend_Service_SimpyTest)
Undefined property:  Zend_Service_Simpy_TagSet::$_links
/Users/weppos/Sites/zend.com.framework/trunk/library/Zend/Service/Simpy/TagSet.php:71
/Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/SimpyTest.php:584
/Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/SimpyTest.php:348

5) testRemoveTag(Zend_Service_SimpyTest)
Undefined property:  Zend_Service_Simpy_TagSet::$_links
/Users/weppos/Sites/zend.com.framework/trunk/library/Zend/Service/Simpy/TagSet.php:71
/Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/SimpyTest.php:584
/Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/SimpyTest.php:377

6) testGetNotes(Zend_Service_SimpyTest)
Undefined property:  Zend_Service_Simpy_NoteSet::$_links
/Users/weppos/Sites/zend.com.framework/trunk/library/Zend/Service/Simpy/NoteSet.php:71
/Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/SimpyTest.php:435

7) testDeleteNote(Zend_Service_SimpyTest)
Undefined property:  Zend_Service_Simpy_NoteSet::$_links
/Users/weppos/Sites/zend.com.framework/trunk/library/Zend/Service/Simpy/NoteSet.php:71
/Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/SimpyTest.php:484

8) testGetWatchlists(Zend_Service_SimpyTest)
Undefined property:  Zend_Service_Simpy_WatchlistSet::$_links
/Users/weppos/Sites/zend.com.framework/trunk/library/Zend/Service/Simpy/WatchlistSet.php:70
/Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/SimpyTest.php:499

9) testWatchlistFilters(Zend_Service_SimpyTest)
Undefined property:  Zend_Service_Simpy_WatchlistFilterSet::$_links
/Users/weppos/Sites/zend.com.framework/trunk/library/Zend/Service/Simpy/WatchlistFilterSet.php:65
/Users/weppos/Sites/zend.com.framework/trunk/tests/Zend/Service/SimpyTest.php:564

FAILURES!
Tests: 16, Errors: 9.
Macintosh:tests weppos$ 

Comments

Following results for latest trunk (on Linux, PHP 5.2.5, PHPUnit 3.2.15):

There was 1 error:

1) testRenameTag(Zend_Service_SimpyTest)
Zend_Http_Client_Exception: Unable to read response, or response is empty
/home/darby/framework/trunk/library/Zend/Rest/Client.php:135
/home/darby/framework/trunk/library/Zend/Service/Simpy.php:81
/home/darby/framework/trunk/library/Zend/Service/Simpy.php:170
/home/darby/framework/trunk/tests/Zend/Service/SimpyTest.php:300

--

There was 1 failure:

1) testGetNotes(Zend_Service_SimpyTest)
Note set does not have the expected size
Failed asserting that 

This issue should have been fixed for the 1.5 release.

This issue seems to have been introduced with SVN r7329 and resolved with SVN r7833, though this issue was neither referred by the commit message nor updated pursuant to the commit. The changes do not appear to have been propagated to the release-1.0 branch, and the changes pre-date (i.e., are included in) the release-1.5 branch.

This issue does not appear to have affected any release of Zend Framework.

Cleaning up fix for versions to only include production releases.