无法使用phpunit运行测试套件

问题描述 投票:0回答:1

我想在我的“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
laravel phpunit
1个回答
0
投票

似乎某些测试中有一个(回调函数)导致了我的问题。现在一切都有效。

© www.soinside.com 2019 - 2024. All rights reserved.