bouiboui\Tissue\Tissue::setConfigPath PHP Method

setConfigPath() public static method

Change config path (useful for tests)
public static setConfigPath ( $configPath )
$configPath
    public static function setConfigPath($configPath)
    {
        static::$configPath = $configPath;
    }

Usage Example

<?php

/**
 * PHPUnit intercepts exceptions so we have to test it in a separate file
 */
include_once dirname(__DIR__) . '/vendor/autoload.php';
use bouiboui\Tissue\Tissue;
Tissue::setConfigPath(dirname(__DIR__) . '/config/config.test.yaml');
Tissue::bindUncaughtExceptionHandler();
throw new \ErrorException('This error was not caught !');