Skip to content

socialskeptic/sainsburys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sainsburys Web Page Consume Test

Application Framework

This application has been built using the FuelPHP HMVC Framework.

Composer Dependencies

This Project uses the following Composer Dependencies which are set inside the composer.json file

  • "curl/curl": "^1.2",
  • "asymptix/php-html-dom-parser": "1.5.*",
  • "pimple/pimple": "~3.0",
  • "phpunit/phpunit": "^5.1"

Project Installation

  1. Create a new virtual host and point the document root to sainsburys/src/public inside this project
  2. Open Terminal and change directory to sainsburys/src
  3. run the following commands
  • rm -rf composer.lock
  • rm -rf fuel/vendor/*
  • php composer.phar install

You can now view the newly installed application at your selected

virtual host address eg http://www.example.com via any browser

Unit Testing

  1. For Unit tests you must update the $hostname variable at the top of sainsburys/test/Base.php to your virtual hostname. eg http://www.example.com/
  2. Open terminal and change directory to the base folder /sainsburys and run the required command below:

If you have phpunit installed globally you can run:

phpunit --colors

otherwise you can use the composer installed phpunit by typing:

src/fuel/vendor/bin/phpunit --colors

Project Folders

All of the custom project files are stored in these folders below:

  • sainsburys/src/fuel/app/classes/controller/
  • sainsburys/src/fuel/library/
  • sainsburys/test/

Project File list

  • sainsburys/src/fuel/app/classes/controller/home.php
  • sainsburys/src/fuel/app/classes/controller/base/rest.php
  • sainsburys/src/fuel/app/classes/controller/test/curl.php
  • sainsburys/src/fuel/library/Di.php
  • sainsburys/src/fuel/library/Common/Curl.php
  • sainsburys/src/fuel/library/Consume/Product.php
  • sainsburys/src/fuel/library/Consume/ProductList.php
  • sainsburys/test/Base.php
  • sainsburys/test/Restful/Home.php
  • sainsburys/test/Functional/Library/Common/Curl.php
  • sainsburys/test/Functional/Library/Consume/Product.php
  • sainsburys/test/Functional/Library/Consume/ProductList.php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages