PHPUnit Segmentation fault

后端 未结 13 797
故里飘歌
故里飘歌 2020-12-28 14:56

When a PHPUnit test fails normally on my dev box (Linux Mint), it causes a \"Segmentation Fault\" on my Continous Integration box (Centos). Both machines are running the sam

13条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-28 15:25

    If anyone comes across this in relation to PHPunit within Laravel

    It took a while to figure out what the issue was. I was going over the differences between my current code and the previous revision and through some trial and error finally got there.

    I had two different models that were both including each other with the protected $with override.

    This must have been causing some kind of loop that phpunit could not deal with.

    Hopefully someone finds this useful.

提交回复
热议问题