Re: [fw-general] Problem with autoloading and unit testing Zend_Application

2009-10-02 Thread Aycko
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',

Re: [fw-general] Problem with autoloading and unit testing Zend_Application

2009-10-01 Thread Aycko
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

Re: [fw-general] Problem with autoloading and unit testing Zend_Application

2009-10-01 Thread Ralph Schindler
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

Re: [fw-general] Problem with autoloading and unit testing Zend_Application

2009-09-28 Thread Aycko
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

Re: [fw-general] Problem with autoloading and unit testing Zend_Application

2009-09-25 Thread Aycko
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');

Re: [fw-general] Problem with autoloading and unit testing Zend_Application

2009-09-25 Thread Vladas Diržys
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

[fw-general] Problem with autoloading and unit testing Zend_Application

2009-09-24 Thread Aycko
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