[
https://issues.apache.org/jira/browse/SHINDIG-295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610685#action_12610685
]
Chris Chabot commented on SHINDIG-295:
--------------------------------------
Hey Emilio,
I seem to run into some issues with this patch still. When i do a clean svn
checkout of shindig and apply the 3 patches:
shindig-namespaces.patch
shindig-PHPUnit.patch
shindig-testcases.patch
and then point my browser to http://shindig/test/common/
i get the following error:
Warning: require_once(PHPUnit/Util/Type.php) [function.require-once]: failed to
open stream: No such file or directory in
/Library/Apache2/htdocs/shindig-clean/php/external/PHPUnit/Framework/Assert.php
on line 49
Fatal error: require_once() [function.require]: Failed opening required
'PHPUnit/Util/Type.php' (include_path='../../:../../external/') in
/Library/Apache2/htdocs/shindig-clean/php/external/PHPUnit/Framework/Assert.php
on line 49
A quick look in the PHPUnit directory tells me that indeed that file doesn't
exist!
So i went and downloaded the most recent release (3.2.21) and replaced the
PHPUnit directory with the new one. Now it is able to find the file i was
missing before, but i run into a new error:
Catchable fatal error: Argument 1 passed to
PHPUnit_Framework_TestSuite::addTest() must implement interface
PHPUnit_Framework_Test, instance of CacheFileTest given, called in
/Library/Apache2/htdocs/shindig-clean/php/external/PHPUnit/Framework/TestSuite.php
on line 745 and defined in
/Library/Apache2/htdocs/shindig-clean/php/external/PHPUnit/Framework/TestSuite.php
on line 255
Could you please let me know what i'm doing wrong here, and why files were
missing in the patch? And what version of PHPUnit i should be using? Did you
make any modifications to it to make it work?
To test this i've used my usual macbook pro with apache 2.2.x, php 5.2.5 and
with zendplatform installed (for debugging/acceleration). To make sure it
wasn't a fault on my end i also tried this on my server, running CentOS 5.2,
PHP 2.5.6, apache 2.2.3 and APC (as opcode cache), did a clean checkout there,
applied the 3 patches and got exactly the same result:
http://shindig-clean.chabotc.com/test/common/
> PHPUnit
> -------
>
> Key: SHINDIG-295
> URL: https://issues.apache.org/jira/browse/SHINDIG-295
> Project: Shindig
> Issue Type: New Feature
> Components: Common Components (PHP)
> Reporter: bruno rovagnati
> Attachments: PHPUnit.patch, shindig-php-testcases.patch,
> shindig-PHPUnit.patch, shindig-testcases.patch
>
>
> PHPUnit Framework + first implementations of TestCases
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.