Ticket #32 (closed defect: fixed)
phpunit2 classes do not implement all required methods for phpunit2-3.0.0
| Reported by: | CloCkWeRX | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 2.2.0 |
| Component: | Version: | 2.2.0RC1 | |
| Keywords: | Cc: |
Description (last modified by mrook) (diff)
C:\vx\tests\unit>phing Buildfile: C:\vx\tests\unit\build.xml
Fatal error: Class XMLPHPUnit2ResultFormatter contains 1 abstract method and mus t therefore be declared abstract or implement the remaining methods (PHPUnit2_Fr amework_TestListener::addSkippedTest) in c:\php\PEAR\phing\tasks\ext\phpunit2\XM LPHPUnit2ResultFormatter.php on line 37
... SNIP ...
Fatal error: Class PlainPHPUnit2ResultFormatter contains 1 abstract method and m ust therefore be declared abstract or implement the remaining methods (PHPUnit2_ Framework_TestListener::addSkippedTest) in c:\php\PEAR\phing\tasks\ext\phpunit2\ PlainPHPUnit2ResultFormatter.php on line 116
C:\vx\tests\unit>pear list INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET: ========================================= PACKAGE VERSION STATE Archive_Tar 1.3.1 stable Archive_Zip 0.1.1 beta Auth_SASL 1.0.1 stable Benchmark 1.2.6 stable Cache 1.5.4 stable Cache_Lite 1.7.0 stable Config 1.10.6 stable Console_Getopt 1.2 stable Console_Table 1.0.4 stable DB 1.7.6 stable DB_DataObject 1.8.4 stable DB_NestedSet 1.2.4 stable Date 1.4.6 stable File 1.2.2 stable HTML_Common 1.2.2 stable HTML_Javascript 1.1.1 stable HTML_QuickForm 3.2.5 stable HTML_Template_Flexy 1.2.4 stable HTML_Template_Sigma 1.1.4 stable HTML_TreeMenu 1.2.0 stable HTTP 1.4.0 stable HTTP_Download 1.1.1 stable HTTP_Header 1.2.0 stable HTTP_Request 1.3.0 stable HTTP_Session2 0.2.0 alpha HTTP_SessionServer 0.5.0 alpha HTTP_Upload 0.9.1 stable Image_Canvas 0.2.4 alpha Image_Color 1.0.2 stable Image_Graph 0.7.1 alpha Image_GraphViz 1.1.0 stable Image_Transform 0.9.0 alpha Log 1.9.5 stable MDB2 2.0.1 stable MDB2_Driver_mysql 1.0.1 stable MIME_Type 1.0.0 stable Mail 1.1.10 stable Mail_Mime 1.3.1 stable Net_DIME 0.3 beta Net_SMS 0.0.2 beta Net_SMTP 1.2.8 stable Net_Server 0.12.0 alpha Net_Socket 1.0.6 stable Net_URL 1.0.14 stable Net_UserAgent_Detect 2.2.0 stable Numbers_Roman 0.2.0 stable Numbers_Words 0.14.0 beta PEAR 1.4.6 stable PEAR_Frontend_Web 0.4 beta PEAR_PackageFileManager 1.5.2 stable PHPUnit 1.3.2 stable PHPUnit2 3.0.0alpha2 alpha PHP_Beautifier 0.1.7 beta PHP_Compat 1.5.0 stable PHP_CompatInfo 1.0.0 stable Pager 2.4.0 stable PhpDocumentor 1.3.0RC6 beta SOAP 0.9.1 beta Services_ABR 0.1.0 beta Services_OpenSearch 0.0.2 alpha System_Command 1.0.5 stable Text_Diff 0.2.1 beta Text_Highlighter 0.6.5 beta Text_Password 1.1.0 stable Text_Statistics 1.0 stable Text_TeXHyphen 0.1.0 alpha Validate 0.6.1 beta Validate_AT 0.5.0 alpha Validate_AU 0.1.2 alpha XML_Beautifier 1.1 stable XML_DTD 0.4.2 alpha XML_FastCreate 1.0.3 stable XML_Feed_Parser 0.2.5alpha alpha XML_Feed_Writer 0.0.7 alpha XML_HTMLSax 2.1.2 stable XML_Parser 1.2.7 stable XML_RPC 1.4.8 stable XML_RSS 0.9.2 stable XML_Serializer 0.16.0 beta XML_Tree 2.0.0RC2 beta XML_Util 1.1.1 stable seagull 0.4.6 beta
Attachments
Change History
comment:2 Changed 4 years ago by mrook
- Status changed from new to closed
- Resolution set to fixed
- Description modified (diff)
Fixed in r67, thanks!
comment:3 Changed 4 years ago by mrook
- Status changed from closed to reopened
- Resolution fixed deleted
Reopen, comment from Daniel O'Connor:
PHPUnit2-3.0.0 requires modifications to more than just XMLPHPUnit2ResultFormatter.php - all of the *ResultFormatter classes need to implement it.
comment:4 Changed 4 years ago by mrook
- Status changed from reopened to closed
- Resolution set to fixed
Now fixed in r72.
comment:5 Changed 4 years ago by ISHITOYA Kentaro <kent@…>
PHPUnit3.1 will not contains PHPUnit2* classes, and PHPUnit2/ dir will be PHPUnit/. Also, TestSuite functions have now one extra argument $time.
I cannot findout a patch, so I made a patch. but i can not attatch it to here so I place it in below. http://soya.guarana.cc:8080/kent/phing/
bye.

UGH!