我想在我的“Homestead”流浪盒里面做一个phpunit测试套件。我只喜欢12次测试..
它工作正常,但突然间我不能再运行了..它给了我这个错误:
vagrant@homestead:~/code/ticketbeast$ ./vendor/bin/phpunit
PHPUnit 7.5.9 by Sebastian Bergmann and contributors.
......PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/vagrant/code/ticketbeast/vendor/laravel/framework/src/Illuminate/Validation/Validator.php on line 315
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32768 bytes) in /home/vagrant/code/ticketbeast/vendor/symfony/debug/Exception/FatalErrorException.php on line 1
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/vagrant/code/ticketbeast/vendor/laravel/framework/src/Illuminate/Validation/Validator.php on line 315
Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32768 bytes) in /home/vagrant/code/ticketbeast/vendor/symfony/debug/Exception/FatalErrorException.php on line 1
似乎某些测试中有一个(回调函数)导致了我的问题。现在一切都有效。