Issues

ZF-10039: Reopen problems with $this->_frontController->getParam('bootstrap') doesn't work under the unit testing environment

Description

I think, the bug ZF-8193 is still here in 10.6.

Failed asserting that is an instance of class "Zend_Application_Bootstrap_Bootstrap".

I make test project for this bug and with phpunit (3.4 and 3.5 fail) http://github.com/abtris/ZF-8193

There was 1 failure:

1) IndexControllerTest::testIndexAction Failed asserting that is an instance of class "Zend_Application_Bootstrap_Bootstrap".

Comments

This not an issue

Assigning of the parameter bootstrap is done through of the called Zend_Application_Bootstrap_Bootstrap::run().

That happens in Zend_Test_PHPUnit_ControllerTestCase::dispatch() there need that the property Zend_Test_PHPUnit_ControllerTestCase::bootstrap is instance of of Zend_Application.

Simply make a change in setUp().


public function setUp()
{
    $this->bootstrap = new Zend_Application(
            APPLICATION_ENV,
            APPLICATION_PATH . '/configs/application.ini'
    );
    parent::setUp();
}

Greetings Ramon