You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our codebase has several custom PHPStan rules for architecture tests and each of these rules have their own PHPUnit test---running feature tests after these tests fails, while feature tests executed before passes. This worked just fine on Laravel 10.x.
I realize that I can specify the APP_BASE_PATH env, but perhaps there's a more robust way of detecting the app path than just grabbing the first autoloader?
This seemed to work in local testing---it filters any paths that are inside the vendor/ directory:
Laravel Version
11.37.0
PHP Version
8.4.1
Database Driver & Version
No response
Description
Hello!
We just updated to Laravel 11.x and now our tests (running
artisan test
) are failing with:which is coming from:
framework/src/Illuminate/Foundation/Testing/TestCase.php
Lines 28 to 35 in 36a4a53
where
Application::inferBasePath
is given by:framework/src/Illuminate/Foundation/Application.php
Lines 253 to 259 in 36a4a53
Our codebase has several custom PHPStan rules for architecture tests and each of these rules have their own PHPUnit test---running feature tests after these tests fails, while feature tests executed before passes. This worked just fine on Laravel 10.x.
I realize that I can specify the
APP_BASE_PATH
env, but perhaps there's a more robust way of detecting the app path than just grabbing the first autoloader?This seemed to work in local testing---it filters any paths that are inside the
vendor/
directory:Thanks!
Steps To Reproduce
execute a PHPStan test with a feature test:
The text was updated successfully, but these errors were encountered: