arxy / codecept-phpbuiltinserver
PhpBuiltinServer extension for Codeception
v1.5.0
2019-09-19 09:04 UTC
Requires
- php: >=5.6.0
- codeception/codeception: ^3.0
Requires (Dev)
- phpunit/phpunit: 5.*
This package is auto-updated.
Last update: 2024-11-23 02:57:17 UTC
README
Codeception extension to start and stop PHP built-in web server for your tests.
Minimum requirements
- Codeception 3.0
- PHP 5.6
Installation
- Install Codeception via Composer
- Add
codeception/phpbuiltinserver: "*"
to yourcomposer.json
- Run
composer install
- Include extensions into
codeception.yml
configuration:
Configuration
general example
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
example for projects based on Symfony
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