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

Issue Type: Bug Created: 2010-06-23T04:56:45.000+0000 Last Updated: 2010-11-27T04:13:09.000+0000 Status: Resolved Fix version(s): Reporter: Ladislav Prskavec (abtris) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Test_PHPUnit

Related issues: - ZF-10607



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)

There was 1 failure:

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


Posted by Ramon Henrique Ornelas (ramon) on 2010-11-27T04:11:10.000+0000

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().

<pre class="highlight">
public function setUp()
    $this->bootstrap = new Zend_Application(
            APPLICATION_PATH . '/configs/application.ini'

Greetings Ramon

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.