tei1988 / phpspec-server-env
Override $_SERVER in running PhpSpec
dev-master
2016-08-03 07:45 UTC
Requires
- php: ^5.3.3|^5.4|^5.5|^5.6|^7.0
- phpspec/phpspec: ^2.0
This package is not auto-updated.
Last update: 2025-01-04 21:03:20 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