Skip to content

Instantly share code, notes, and snippets.

@jeffgca
Created March 9, 2011 18:50
Show Gist options
  • Select an option

  • Save jeffgca/862720 to your computer and use it in GitHub Desktop.

Select an option

Save jeffgca/862720 to your computer and use it in GitHub Desktop.
Shell script to run via ant to actually run the PHPUnit tests run and avoid segfaults caused by code coverage issues with gc and xdebug.
#!/bin/bash
# this mitigates this issue with Xdebug, PHPUnit, code coverage and Rediska:
# http://bugs.xdebug.org/view.php?id=670
export USE_ZEND_ALLOC=0
/usr/bin/phpunit --configuration tests/phpunit.xml --log-junit build/logs/junit.xml --coverage-clover build/logs/clover.xml tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment