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

composer.json mistake - Page 24 #70

Closed mdavis1982 closed 11 years ago

mdavis1982 commented 11 years ago

On Page 24, is says to list PHPUnit in a "require-dev" section in composer.json, but the example code lists it in a normal "require" block.

JeffreyWay commented 11 years ago

It's difficult to determine where that is, because page 24 is different for all formats and text sizes.

Can you paste a nearby sentence where the error is?

mdavis1982 commented 11 years ago

Sorry, Jeffrey... I was reading the PDF version.

It's in the Making Packages Available Globally section in Chapter 2, right after "To allow for this, within your computer’s home directory (or anywhere, really), create a new folder, composer-packages, add its companion composer.json file, and list your desired global dependencies within the require-dev object."

JeffreyWay commented 11 years ago

Thanks. Fixed!