Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.68 KB

README.md

File metadata and controls

59 lines (40 loc) · 1.68 KB

Build Status Maintainability

Using PHP Built-in Server to run automated testing

Description

phpunit is widely used to unit-test PHP code. Using the PHP built-in server, it can be used to run End-to-End, Functional and Black Box tests (see #9), #15, #20 here) to verify that your application is behaving as expected and that the rendered output is correct. It is a viable alternative to more complex testing tools, such as Selenium Web Driver, for simple web applications or even static websites (static content needs validation too).

Included tests

Requirements

Installation

Clone the repository, then run:

$ composer install

Usage

Simulate passing tests

Run:

$ ./vendor/bin/phpunit

Simulate errors

Remove the .skip_this extension from:

then run:

$ ./vendor/bin/phpunit