/pagescrape

Primary LanguagePHPBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Not intended for public use. Test purposes only

Start PHP CLI Server

The simplest way to get started if you are using PHP 5.4 or above is to start the internal PHP cli-server in the root directory:

php -S 0.0.0.0:8080 -t public/ public/index.php

Install Composer dependencies

php composer.phar install

Run Command

From the project root run the following command in terminal

php public/index.php scrape bbc-top-shared

Unit Tests

From the project root run phpunit -c ./tests/phpunit

Behat Tests

Experimental to see how Behat runs, I haven't wrote BDD tests prior to this.

From the project root run vendor/bin/behat --config tests/behat/behat.yml