Codeception extension to start and stop PHP built-in web server for your tests.
Codeception Branch | PhpBuiltinServer Branch | Status |
---|---|---|
Codeception 1.x | 1.1.x | |
Codeception 2.0 | 1.2.x | |
Codeception 2.1, 2.2 | 1.3.x | |
Codeception 2.3 | 1.4.x | |
Codeception 3.0, 4.0 | master |
codeception/phpbuiltinserver: "*"
to your composer.json
composer install
codeception.yml
configuration:paths:
tests: .
log: _log
data: _data
helpers: _helpers
extensions:
enabled:
- Codeception\Extension\PhpBuiltinServer
config:
Codeception\Extension\PhpBuiltinServer:
hostname: localhost
port: 8000
autostart: true
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
autostart: true
documentRoot: ../web
router: ../web/app.php
directoryIndex: app.php
startDelay: 1
phpIni: /etc/php5/apache2/php.ini