Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Bootstrap class for functionally testing controllers is not required #1538

Open
vitorbrandao opened this issue Jun 5, 2016 · 2 comments
Open

Comments

@vitorbrandao
Copy link

Documentation page Unit Testing a Zend Framework 2 application suggests the creation of a Bootstrap class where the ZF2 App is initialized. However by extending AbstractHttpControllerTestCase as seen on the same page the application config is set again and the App initialized again which makes Bootstrap useless.

A simple vendor/autoload.php file used as bootstrap in conjunction with AbstractHttpControllerTestCase is enough IMO.

@stefanotorresi
Copy link
Contributor

👍 for this change, since we are also in the process of removing the old test bootstrap from the various components in favor of vendor/autoload.php in zendframework/zendframework#7660 (where applicable).

@Ocramius
Copy link
Member

Ocramius commented Jun 5, 2016

Argh, I thought the bootstrap class already died ages ago. Kill it with fire!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants