Skip to content

Instantly share code, notes, and snippets.

@asm89
Last active December 18, 2015 14:29
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save asm89/5797852 to your computer and use it in GitHub Desktop.
Save asm89/5797852 to your computer and use it in GitHub Desktop.
Rerun PHPUnit on file changes in a given dir (defined in my .bashrc)
# watch files and rerun phpunit on changes
phpunitwait() {
while inotifywait $(find $1 -name '*.php');
do
clear;
phpunit --colors $2;
done;
}
@cordoval
Copy link

problem is you are using phpunit from pear and not from the project :(
is this for mac or only for linux?

@Ocramius
Copy link

@cordoval make a small wrapper SH script and drop it in your /usr/local/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment