hounaida / Hounaida-test

Load products and reviews from an external json file and display them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

The purpose of the app is to load products and its reviews from an external json resource and display a table product. Both Unit and Functional testing are implemented in this app.

Setup the project

$ cd /var/www/html
$ git clone git@github.com:hounaida/Hounaida-test.git hounaida-app
$ cd hounaida-app
$ composer install

Load fixtures

In order to load the sample data, run the below commands:

$ cd /var/www/html/hounaida-app
$ php bin/console doctrine:fixtures:load

Enjoy! http://localhost/hounaida-app/web/app_dev.php/products

Run Unit & functional testing

Unit testing

$ php ./vendor/bin/simple-phpunit tests/Unit

Functional testing

$ php ./vendor/bin/simple-phpunit tests/Fonctional

About

Load products and reviews from an external json file and display them.


Languages

Language:PHP 88.9%Language:HTML 7.8%Language:JavaScript 1.7%Language:CSS 1.6%