tei1988/phpspec-server-env

Override $_SERVER in running PhpSpec

dev-master 2016-08-03 07:45 UTC

This package is not auto-updated.

Last update: 2024-05-11 17:12:33 UTC


README

Replace variables in $_SERVER during running PhpSpec.

Usage

Add it to your composer.json file to install with Composer:

composer require tei1988/phpspec-server-env

Enable it in your phpspec.yml file:

extensions:
    - PhpSpec\Extension\ServerEnvExtension
server_env:
  A_KEY_YOU_WANT_TO_REPLACE: A_VALUE_YOU_WANT_TO_REPLACE