Skip to content

Instantly share code, notes, and snippets.

@asm89

asm89/gist:5797852

Last active Dec 18, 2015
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@cordoval cordoval commented Jun 18, 2013

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

@Ocramius

This comment has been minimized.

Copy link

@Ocramius Ocramius commented Jan 27, 2014

@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
You can’t perform that action at this time.