codeception/phpbuiltinserver

PhpBuiltinServer extension for Codeception

Installs: 28 780

Dependents: 7

Stars: 20

Watchers: 3

Forks: 12

Open Issues: 8

Language: PHP

v1.2.1 2014-09-19 10:14 UTC

README

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.x 1.2.x Build Status

Minimum requirements

  • Codeception 2.0
  • 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
            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
            documentRoot: ../web
            router: ../web/app.php
            directoryIndex: app.php
            startDelay: 1
            phpIni: /etc/php5/apache2/php.ini