First off, I'd like to say I am completely new to Zend and PHPUnit and I am trying to learn them for a new project.
After some research, many people online recommended that I start with the Akrabat tutorial for ZF located at
I followed the instructions through installation, changing my PATH variables, etc. all the way to creating my first project using the command line tool. I went to my localhost directory and ran
This aborted due to a fatal error:
> zf create project zf-tutorial
I went to the file in question to see where the error was coming from. It reads:
Fatal error: Class 'PHPUnit_Framework_TestCase' not found in C:\Program Files (x86)\ZendFrameworkCli\library\Zend\Test\PHPUnit\ControllerTestCase.php on line 48
The class Zend_Test_PHPUnit_ControllerTestCase is derived from the class PHPUnit_Framework_TestCase, which can't be found.
/** @see Zend_Controller_Front */
/** @see Zend_Controller_Action_HelperBroker */
/** @see Zend_Layout */
/** @see Zend_Session */
/** @see Zend_Registry */
* Functional testing scaffold for MVC applications
* @uses PHPUnit_Framework_TestCase
* @category Zend
* @package Zend_Test
* @subpackage PHPUnit
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
abstract class Zend_Test_PHPUnit_ControllerTestCase extends PHPUnit_Framework_TestCase
. . .
I searched through the directories, but I couldn't find a file with the class PHPUnit_Framework_TestCase defined in it. I'm not sure where else it would be other than the ZendFrameworkCli\library\Zend\Test\PHPUnit\ directory. Any ideas?
Some Miscellaneous Information:
I'm running Windows 7, using XAMPP for my server and ZF version 1.12.6 (according to the zf show version command). Could it be a problem that there are two different Zends? How do I get rid of the newer version?
> php --version
PHP 5.5.6 (cli) (built: Nov 12 2013 11:33:44)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies