Hello Ralph tanks for posting. This is exactly the way i setup my testing
environment. Here are the source code.
bootstrap.php
?php
error_reporting(E_ALL | E_STRICT);
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH',
Push.
Aycko wrote:
All classes which are loaded with Zend_Application_Module_Autoloader in
module bootrap could not be found. The autoloaders are defined in
application bootstrap and module bootstrap ... this works great, but not
fpr testing.
Defining the
Mostly you should note that just as your application would bootstrap, so
does your testing environment.
This means that you need to have an Zend_Application being setup, and it
would bootstrap as normal. This would assume that your bootstrap class
probably has a method to setup your
All classes which are loaded with Zend_Application_Module_Autoloader in
module bootrap could not be found. The autoloaders are defined in
application bootstrap and module bootstrap ... this works great, but not fpr
testing.
Defining the Zend_Application_Module_Autoloaders in bootstrap file in
Aycko wrote:
Hello together,
i set up a basic environment for unit testing my Zend_Application.
A basic test looks something like this:
public function testDefaultControllerAndAction() {
$this-dispatch('/');
$this-assertController('index');
Can you provide more detailed information about the fatal error?
--
Regards,
Vladas Diržys
On Fri, Sep 25, 2009 at 13:18, Aycko aycko.maer...@gmx.de wrote:
Aycko wrote:
Hello together,
i set up a basic environment for unit testing my Zend_Application.
A basic test looks
Hello together,
i set up a basic environment for unit testing my Zend_Application.
A basic test looks something like this:
public function testDefaultControllerAndAction() {
$this-dispatch('/');
$this-assertController('index');
$this-assertAction('index');
}
Calling phpunit in