Fruity app will read a html page. It will then parse the products on the page, visit individual product pages, and return JSON formatted output.
Once you have the dependencies for the app, run the app by entering the following command from the root directory of the app's locations:
$ php fruity.php
Again, once you have the dependencies for the app, you can run the tests using the following command from the "tests" directory of the app.
$ cd tests
$ phpunit
- You need PHP (5.3 or later) installed on your system
- You need composer installed on your system
- All other dependencies can then be automatically obtained by composer. After cloning / downloading the app, run the following command (from the root of the app's directory( to get all dependencies
php composer.phar install