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

Bootstrap class for functionally testing controllers is not required #1538

@vitorbrandao

Description

@vitorbrandao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions