Download the PHP package ciaranmcnulty/behat-localwebserverextension without Composer
On this page you can find all versions of the php package ciaranmcnulty/behat-localwebserverextension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ciaranmcnulty/behat-localwebserverextension
More information about ciaranmcnulty/behat-localwebserverextension
Files in ciaranmcnulty/behat-localwebserverextension
Package behat-localwebserverextension
Short Description Extension for behat users who forget to start their webserver
License MIT
Homepage http://github.com/ciaranmcnulty/behat-localwebserverextension
Informations about the package behat-localwebserverextension
Behat Local Webserver Extension
A trivial extension for people who forget to start their webserver
Installation
Require in composer
Usage
Add to your behat.yml
:
Run your suite, and your web examples should pass - the internal PHP webserver is started at suite start and exited at suite end.
Advanced Configuration
Available configuration options:
If your behat config is elsewhere than in your root directory (for example app/behat.yml
you need to customize the docroot to the right path. In our example it would be docroot: '%paths.base%/../web'
Usage with MinkExtension
When MinkExtension is used, default host and port will be read from Mink's base_url
setting , but you can still override
if required.
Limitations
To do:
- [ ] Only turn webserver on for certain contexts
- [ ] Support symfony app console
- [ ] Support custom server startup / stop commands