News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Chris Hartjes' Blog:
PHPUnit Aborted Fix
January 19, 2012 @ 11:16:53

Chris Hartjes ran into an issue with hit unit tests where PHPUnit was throwing an "aborted" error no matter what tests were run. Thankfully, in this new post, he shares a solution.

That was a pretty annoying bug. I never did find out what the problem was as I moved onto other problems and chalked that error up to some undiagnosed weirdness on that particular server. From time to time I would get asked on Twitter if I had ever solved the problem. My answer was always "no, and if you do solve it please let met know how you fixed it." Today, my friends, was the day.

Based on a response from Demian Katz, he was able to get around the issue with flag set on the PHPUnit command line - "-dzend.enable_gc=0". Apparently the issue has to do with garbage collection and has been a known issue since the beginning of 2011.

0 comments voice your opinion now!
phpunit aborted unittest fix garbage collection bug


blog comments powered by Disqus

Similar Posts

Mike Lively's Blog: Adding Database Tests to Existing PHPUnit Test Cases

RamonLechuga.com: PHP Error Handler, Tracking your project bugs

Jani Hartikainen's Blog: Unit testing part 2: Writing and running tests

Damian Sromek's Blog: [How to] Run PHPUnit tests using database 10x faster

Matthew Weier O'Phinney's Blog: Setting up your Zend_Test test suites


Community Events

Don't see your event here?
Let us know!


voicesoftheelephpant language extension psr7 community api introduction opinion podcast framework release series video unittest conference library laravel development interview laravel5

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework