Extension to use built-in PHP server on Behat tests
Instalation
composer require libresign/behat-builtin-extension
Configuration
Add the extension to your behat.yml
:
default:
extensions:
PhpBuiltin\Server:
verbose: false
rootDir: /var/www/html
host: localhost
Config values
config | default | Environment | Description |
---|---|---|---|
verbose | false | none | Enables/disables verbose mode |
rootDir | /var/www/html | BEHAT_HOST | Specifies http root dir |
host | localhost | BEHAT_ROOT_DIR | Host domain or IP |
You can also use -v
option to enable verbose mode. Example
vendor/bin/behat -v
The verbose mode will show:
- The rootDir used
- The output of PHP Built-in server