Issues

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

Attachments:

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

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_ENV,
            APPLICATION_PATH . '/configs/application.ini'
    );
    parent::setUp();
}

Greetings Ramon

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts