test-acceptance.md 828 Bytes

Acceptance Tests

Note: This section is under development.

How to run webserver

In order to perform acceptance tests you need a web server. Since PHP 5.4 has built-in one, we can use it. For the basic application template it would be:

cd web
php -S localhost:8080

In order for the tests to work correctly you need to adjust TEST_ENTRY_URL in _bootstrap.php file. It should point to index-test.php of your webserver. Since we're running directly from its directory the line would be:

defined('TEST_ENTRY_URL') or define('TEST_ENTRY_URL', '/index-test.php');