Skip to content

Instantly share code, notes, and snippets.

@Caffe1neAdd1ct
Created February 6, 2014 01:46
Show Gist options
  • Save Caffe1neAdd1ct/8837024 to your computer and use it in GitHub Desktop.
Save Caffe1neAdd1ct/8837024 to your computer and use it in GitHub Desktop.
phpunit netbeans debug custom script
#!/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