As Laravel 11 tests/TestCase.php it doesn't have use CreatesApplication; statement.
So in fresh Laravel install if you install Pest right after that, by default the tests/TestCase.php exists so it would recognized.
I manually removed the tests/TestCase.php so pest:install replaced the stubs, after running the php artisan test command i encouraged an error that shows use CreatesApplication; is not found.
What:
Description:
As Laravel 11
tests/TestCase.php
it doesn't haveuse CreatesApplication;
statement.So in fresh Laravel install if you install Pest right after that, by default the
tests/TestCase.php
exists so it would recognized.I manually removed the
tests/TestCase.php
sopest:install
replaced the stubs, after running thephp artisan test
command i encouraged an error that showsuse CreatesApplication;
is not found.