Skip to content

Instantly share code, notes, and snippets.

@cbednarski
Last active December 10, 2015 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbednarski/4449892 to your computer and use it in GitHub Desktop.
Save cbednarski/4449892 to your computer and use it in GitHub Desktop.
Sublime text build system for phpunit -- runs on the current file
// Mac Lion using homebrew
{
"cmd": ["/usr/local/opt/php54/bin/php", "/usr/local/bin/phpunit", "$file"]
}
// Ubuntu 12.04 with pear-installed PHPUnit
// Ctrl + B to run phpunit
// Ctrl + Shift + B to run the script
{
"selector":"source.php",
"cmd": ["phpunit", "$file"],
"variants": [
{
"cmd": ["php", "$file"],
"name": "Run"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment