[4.4] Tests fail |
In the 4.4 branch, the CodeIgniter\CodeIgniterTest::testRun404Override() and similar tests fail.
All tests return welcome_page. Since the request goes to $_SERVER['argv'] = ['index.php', '/']; And in routes, the default route is on App\Controllers\Home::index In the develop branch, tests pass. Are these problems on my side, or is the 4.4 branch not tested?
Cannot reproduce.
Code: (4.4 $=)$ vendor/bin/phpunit tests/system/CodeIgniterTest.php
Strange behavior.
On Windows, there are errors in the tests. On a virtual machine in Ubuntu, there are no errors in the tests. 2All: Can someone test on Windows (no WSL)? OK. I found. The problem was in the file paths. PHP Code: // \CodeIgniter\Router\RouteCollection::discoverRoutes() Most tests that depend on paths fail on Windows. Quote:You should always be careful about the case of filenames. Many developers develop on case-insensitive file systems on Windows or macOS. However, most server environments use case-sensitive file systems. If the file name case is incorrect, code that works locally will not work on the server. Can it help? https://codeigniter4.github.io/CodeIgnit...nning.html
No, it is not related to this case. It is because of the directory separator "\" (Windows) or "/" (others).
On Windows the current 89 tests for the framework fails. https://github.com/codeigniter4/CodeIgniter4/pull/7491
We orginally had this problem with the start of CodeIgniter 4 with the path seperator in views on Windows.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |