https://github.com/mfn/laravel-tests-memleak
See https://github.com/laravel/framework/issues/30736
https://github.com/mfn/laravel-tests-memleak
Last synced: 2 months ago
JSON representation
See https://github.com/laravel/framework/issues/30736
- Host: GitHub
- URL: https://github.com/mfn/laravel-tests-memleak
- Owner: mfn
- Created: 2019-12-03T20:17:16.000Z (over 5 years ago)
- Default Branch: l7
- Last Pushed: 2020-04-10T20:38:57.000Z (about 5 years ago)
- Last Synced: 2025-01-23T22:25:20.556Z (4 months ago)
- Language: PHP
- Size: 75.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testbed for Laravel phpunit memory consumption
- `composer install`
- Generate n² methods with:
`php artisan generateHorde 50`
Files are generate in `tests/Unit/TestHorde/TestTest.php`.
- Run tests:
`vendor/bin/phpunit`Observe the increased memory output:
```
$ vendor/bin/phpunit
PHPUnit 8.4.3 by Sebastian Bergmann and contributors..21294088
…
. 2501 / 2501 (100%)
50370656Time: 12.66 seconds, Memory: 54.00 MB
OK (2501 tests, 2501 assertions)
```Adjust `\App\Console\Commands\GenerateHorde` to generate a different kind of test.