Guardfile 222 B

12345678
  1. guard 'phpunit2', :tests_path => 'tests', :cli => '--colors' do
  2. # Watch tests files
  3. watch(%r{^.+Test\.php$})
  4. # Watch library files and run their tests
  5. watch(%r{^src/(.+)\.php}) { |m| "tests/#{m[1]}Test.php" }
  6. end