psrustik / PhpBuiltinServer

Codeception extension for starting and stopping php built-in server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PhpBuiltinServer

Codeception extension for starting and stopping php built-in server

Build Status

Minimum requirements

  • Codeception 1.6.4
  • 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: _data

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

About

Codeception extension for starting and stopping php built-in server


Languages

Language:PHP 100.0%