Created
February 6, 2014 01:46
-
-
Save Caffe1neAdd1ct/8837024 to your computer and use it in GitHub Desktop.
phpunit netbeans debug custom script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
putenv("XDEBUG_CONFIG=idekey=netbeans-xdebug"); | |
define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main'); | |
if (strpos('/usr/bin/php', '@php_bin') === 0) { | |
require dirname(__FILE__) . DIRECTORY_SEPARATOR . 'PHPUnit' . DIRECTORY_SEPARATOR . 'Autoload.php'; | |
} else { | |
require '/usr/share/pear' . DIRECTORY_SEPARATOR . 'PHPUnit' . DIRECTORY_SEPARATOR . 'Autoload.php'; | |
} | |
PHPUnit_TextUI_Command::main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment