Codeception extension to start and stop PHP built-in web server for your tests.
- Codeception 2.0
- PHP 5.4
- Install Codeception via Composer
- Add
archanium/phpbuiltinserver: "dev-master"
to yourcomposer.json
- Run
composer install
- Include extensions into
codeception.yml
configuration:
paths:
tests: .
log: _log
data: _data
helpers: _helpers
extensions:
enabled:
- Codeception\Extension\PhpBuiltinServer
config:
Codeception\Extension\PhpBuiltinServer:
hostname: localhost
port: 8000
documentRoot: tests/_data
startDelay: 1
phpIni: /etc/php5/apache2/php.ini
paths:
tests: .
log: _log
data: _data
helpers: _helpers
extensions:
enabled:
- Codeception\Extension\PhpBuiltinServer
config:
Codeception\Extension\PhpBuiltinServer:
hostname: localhost
port: 8000
documentRoot: ../web
router: ../web/app.php
directoryIndex: app.php
startDelay: 1
phpIni: /etc/php5/apache2/php.ini