无法使用phpunit运行测试套件

时间:2019-04-27 14:44:18

标签: laravel phpunit

我正在尝试在我的“宅基地”无业游民的盒子里做一个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

1 个答案:

答案 0 :(得分:0)

似乎某些测试中存在(回调函数)对我造成了问题。现在一切正常。