On 02/12/2010 14:53, Matthew Weier O'Phinney wrote:
-- Mike A<[email protected]>  wrote
(on Thursday, 02 December 2010, 05:07 AM +0000):
I can unit test individual ZF objects with PHPUnit if I take the
object into my own project folder and strip out PHPUnit references.
If, however, I set the directory path to the ZF object in the
library folder on my server I get errors like "Call to undefined
method PHPUnit_Util_Filter::addFileToFilter() in 
E:\xampp1.7.3\xampp\libraries\ZF-1.11.0\tests\Zend\Controller\_files\EmptyController.php
on line 25".

Please, could someone advise on the correct way to run tests
supplied within the ZF library.
I'm guessing you're using a 3.5+ version of PHPUnit? If so, the
PHPUnit_Util_Filter::addFileToFilter() method was removed. Downgrade to
a PHPUnit 3.4.X version and you should be fine.

(In the ZF2 repo, we've removed those calls so as to be compatible with
PHPUnit 3.5.)

That's what I was after! Thought I'd been doing something daft. Thanks Matthew.

Ron: thanks also. I unit test my own code and have seen the (excellent) Zendcast thingies. I'm steadily getting ready to provide input during monthly bug hunt days but didn't want, in effect, two system set-ups to cope with that and my developments. Matthew's answer makes me think towards gearing all my development pursuits for ZF 2.0.

Reply via email to