codeception / phpbuiltinserver
PhpBuiltinServer extension for Codeception
Installs: 805 351
Dependents: 23
Suggesters: 6
Security: 0
Stars: 38
Watchers: 3
Forks: 35
Open Issues: 15
Requires
- php: >=5.6.0
- codeception/codeception: ^3.0
Requires (Dev)
- phpunit/phpunit: 5.*
This package is not auto-updated.
Last update: 2024-07-02 21:47:03 UTC
README
PhpBuiltinServer
![Total Downloads](https://camo.githubusercontent.com/00c401fc11285f3040e2df68f92998f14dee282d5b581bf4ef08cf84b6a8b196/68747470733a2f2f706f7365722e707567782e6f72672f636f646563657074696f6e2f7068706275696c74696e7365727665722f646f776e6c6f6164732e706e67)
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 |
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