-- 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.)

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

Reply via email to