codeception/phpbuiltinserver

PhpBuiltinServer extension for Codeception

Maintainers

👁 tiger-seo

Package info

github.com/tiger-seo/PhpBuiltinServer

pkg:composer/codeception/phpbuiltinserver

Statistics

Installs: 1 029 447

Dependents: 20

Suggesters: 6

Stars: 38

Open Issues: 14

v1.5.0 2019-09-19 09:04 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 2ae502c527b4a349930c4a61cde776ab2d18f199

  • tiger-seo <tiger.seo.woop@gmail.com>

codeception


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.0 1.2.x 👁 Build Status
Codeception 2.1, 2.2 1.3.x 👁 Build Status
Codeception 2.3 1.4.x 👁 Build Status
Codeception 3.0, 4.0 master 👁 Build Status

Minimum requirements

  • Codeception 3.0
  • PHP 5.6

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