DataSift\Storyplayer\Injectables\ActiveSystemUnderTestConfigSupport::initActiveSystemUnderTestConfigSupport PHP Method

initActiveSystemUnderTestConfigSupport() public method

public initActiveSystemUnderTestConfigSupport ( $sutName, $injectables )
    public function initActiveSystemUnderTestConfigSupport($sutName, $injectables)
    {
        // does the system-under-test exist?
        if (!$injectables->knownSystemsUnderTestList->hasEntry($sutName)) {
            throw new E4xx_NoSuchSystemUnderTest($sutName);
        }
        // remember the system-under-test
        $this->activeSystemUnderTestName = $sutName;
        $this->activeSystemUnderTestConfig = $injectables->knownSystemsUnderTestList->getEntry($sutName);
        // we need to merge the 'roles' section into our chosen test environment
        $injectables->activeTestEnvironmentConfig->mergeSystemUnderTestConfig($this->activeSystemUnderTestConfig);
    }
ActiveSystemUnderTestConfigSupport