Skip to content

Instantly share code, notes, and snippets.



Last active Dec 18, 2015
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');
phpunit --colors $2;

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?


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.