Zend - cannot find PHPUnit/framework.php

前端 未结 3 2019
野的像风
野的像风 2021-01-25 18:08

I am running OSX Lion with an installation of XAMPP. Setting up PEAR with XAMPP has proven to be difficult, but I got it work and installed PHPUnit. When I look in the XAMPP p

相关标签:
3条回答
  • 2021-01-25 18:38

    Check your bootstrap.php and disable fallback autoloader: Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(false);

    0 讨论(0)
  • 2021-01-25 18:44

    I also had to uninstall phing and replace it by an older version:

    sudo pear uninstall phing/phing
    sudo pear install phing/phing-2.3.3
    
    0 讨论(0)
  • 2021-01-25 18:54

    Zend Framework requires you to run PHPUnit 3.5.x and I assume you have installed PHPUnit 3.6.x from pear.

    Check out the guide on how to downgrade-phpunit-3-6-to-3-5-15 to fix your issue when running the ZF1 tests

    0 讨论(0)
提交回复
热议问题