laravel / framework

The Laravel Framework.
https://laravel.com
MIT License
32.62k stars 11.03k forks source link

Add assertCount() for fake storage #53620

Closed ahmadreza1383 closed 16 hours ago

ahmadreza1383 commented 20 hours ago

This change adds a new method to the fake storage called assertCount. This assertion checks that the number of files in a given path matches the expected value. Additionally, it supports the recursive option to compare the total number of files, including those in subdirectories, with the expected value.

github-actions[bot] commented 20 hours ago

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.