JeffreyWay / Laravel-Testing-Decoded

This project is exclusively for reporting typos and errors in the book, "Laravel Testing Decoded."
34 stars 10 forks source link

Error in Chapter 3: Configure PHPUnit #105

Open toddmcbrearty opened 10 years ago

toddmcbrearty commented 10 years ago

Under the watching files section you should to configure guard as so

guard 'phpunit', :cli => '--colors', :tests_path => 'tests' do
  watch(%r{^.+Test\.php$})

  watch(%r{app/(.+)/(.+).php}) {
    |m| "tests/#{m[1]}/#{m[2]}Test.php"
  }
end

The portion

 :tests_path => 'tests' do

Throws an error test.php not found. not sure what the fix is. i'll continue to look