Skip to content

HTTP Feature Testing not working  #1710

Description

@diegoldev

Description of the bug
I'm working with appstarter project and when I try to run phpunit, i found serveral errors:

  1. 'tests' folder is not included in the composer download, I could create it but, beyond functioning as a container of tests files, it has the '_support' folder which contain _bootstrap.php that help unit tests be executed correctly.
  2. In order to fix the previous error, I downloaded manually 'tests' folder from develop branch. After that, I try to execute a test using HTTP Feature Testing but it throwing the above error:
Tests\TestHome::testIndex
CodeIgniter\Exceptions\PageNotFoundException: Controller or its method is not found: App\Controllers\\Http:::ci4.extctrl.docker:8080

/var/www/html/ci4-extendedcontroller/vendor/codeigniter4/framework/system/Exceptions/PageNotFoundException.php:14
/var/www/html/ci4-extendedcontroller/vendor/codeigniter4/framework/system/CodeIgniter.php:889
/var/www/html/ci4-extendedcontroller/vendor/codeigniter4/framework/system/CodeIgniter.php:249
/var/www/html/ci4-extendedcontroller/vendor/codeigniter4/framework/system/Test/FeatureTestCase.php:122
/var/www/html/ci4-extendedcontroller/tests/TestHome.php:21 

CodeIgniter 4 version
CodeIgniter 4.0.0-alpha.5 (appstarter, framework and devstarter projects)

Affected module(s)
HTTP Feature Testing

Expected behavior, and steps to reproduce if appropriate
I've described further the behavior in this forum post
Context

  • OS: Debian (running in Docker over Windows 10)
  • Web server: Apache 2.4.5 (Debian)
  • PHP version: 7.3.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in progresstestingPull requests that changes tests only

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions