I got same error when use PHPUnit-3.4.0, but working fine if use PHPUnit-3.3.9
===========
PHP Fatal error: Cannot redeclare class phpunit_framework_testsuite_dataprovid
r in C:\Library\PHPUnit\Framework\TestSuite\DataProvider.php on line 64
PHP Stack trace:
PHP 1. {main}() C:\PHP\zf.php:0
PHP 2. zf_main() C:\PHP\zf.php:23
PHP 3. zf_run() C:\PHP\zf.php:36
PHP 4. Zend_Tool_Framework_Client_Console::main() C:\PHP\zf.php:214
PHP 5. Zend_Tool_Framework_Client_Abstract->dispatch() C:\Library\Zend\Tool\F
amework\Client\Console.php:96
PHP 6. Zend_Tool_Framework_Client_Abstract->initialize() C:\Library\Zend\Tool
Framework\Client\Abstract.php:209
PHP 7. Zend_Tool_Framework_Loader_Abstract->load() C:\Library\Zend\Tool\Frame
ork\Client\Abstract.php:118
PHP 8. include_once() C:\Library\Zend\Tool\Framework\Loader\Abstract.php:90
=======
Is any different should be configured if used PHPUnit-3.4.0?
Regards,
bn
________________________________
From: scs [mailto:[email protected]]
Sent: Fri 25-Sep-2009 17:55
To: [email protected]
Subject: [fw-general] zend tool - Cannot redeclare class Zend_Loader in ...
Hello,
Is it wrong to use zf tool from a different folder with a separate
library folder (other than the project's library)?
This is the case:
I always get the same error
"Fatal error: Cannot redeclare class Zend_Loader in .."
whenever I try to create a new action or something else.
I have a separate directory for zf tool like below:
/home/username/zftool/
/home/username/zftool/bin
/home/username/zftool/library/Zend/...
I created an alias for zf.sh file on my linux machine so that I can
call it from anywhere.
With the first creation of a project (/var/www/project/), everything is okay.
But after I upload the library/Zend folders under the project's
library folder (/var/www/project/application/library),
it breaks the zf tool's working.
If I try to create a new controller, action etc., I get the cannot
redeclare error.
I found a workaround for this:
I rename the projects library folder (/var/www/project/application/
library) to something else, and the zf tool works without any error.
However, whenever I need to create something with zf tool, I need to
rename the library folder and after creation,
I need to rename it back to its previous name.
Something wrong with me or the zf tool?
thanks
scs