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
Expect('App\Enums')->toBeEnums(); is passing although my App doesn't contain an Enums directory.
The test is executed in tests/Unit/ArchTest.php
How to Reproduce
I set up a fresh Laravel app and ran test('app')->expect('App\Enums')->toBeEnums(); inside tests/Unit/ArchTest.php, which passes. However the app does not contain the App\Enums directory.
Sample Repository
No response
Pest Version
2.34
PHP Version
8.2.6
Operation System
Windows
Notes
No response
The text was updated successfully, but these errors were encountered:
This is not a bug. If there is no directory, there are no classes/files, but at the same time all found classes/files are enums, so in theoretical terms the statement is correct. All files in App\Enums are Enums
What Happened
Expect('App\Enums')->toBeEnums(); is passing although my App doesn't contain an Enums directory.
The test is executed in tests/Unit/ArchTest.php
How to Reproduce
I set up a fresh Laravel app and ran test('app')->expect('App\Enums')->toBeEnums(); inside tests/Unit/ArchTest.php, which passes. However the app does not contain the App\Enums directory.
Sample Repository
No response
Pest Version
2.34
PHP Version
8.2.6
Operation System
Windows
Notes
No response
The text was updated successfully, but these errors were encountered: