Codeception extension for starting and stopping php built-in server
PHP
Latest commit ed79f18 Dec 20, 2016 @tiger-seo Update README.md
Permalink
Failed to load latest commit information.
src/Codeception/Extension Fix imported exceptions Nov 3, 2016
tests Fix imported exceptions Nov 3, 2016
.gitignore initial commit Aug 29, 2013
.travis.yml Update .travis.yml Dec 20, 2016
README.md Update README.md Dec 20, 2016
codeception.yml fixing #18: Wrong documentRoot breaks silently May 14, 2015
composer.json
composer.lock Fix imported exceptions Nov 3, 2016

README.md

PhpBuiltinServer Latest Stable Total Downloads

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 Build Status
Codeception 2.0 1.2.x Build Status
Codeception 2.1, 2.2 1.3.x Build Status

Minimum requirements

  • Codeception 2.1
  • PHP 5.4

Installation

  1. Install Codeception via Composer
  2. Add codeception/phpbuiltinserver: "*" to your composer.json
  3. Run composer install
  4. 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