Neos\Flow\Tests\Unit\Configuration\ConfigurationManagerTest::postProcessConfigurationMaintainsConstantTypeIfOnlyValue PHP Метод

postProcessConfigurationMaintainsConstantTypeIfOnlyValue() публичный Метод

    public function postProcessConfigurationMaintainsConstantTypeIfOnlyValue()
    {
        $settings = ['foo' => 'bar', 'anIntegerConstant' => '%PHP_VERSION_ID%', 'casted' => ['to' => ['string' => 'Version id is %PHP_VERSION_ID%']]];
        $configurationManager = $this->getAccessibleMock(ConfigurationManager::class, ['dummy'], [], '', false);
        $configurationManager->_callRef('postProcessConfiguration', $settings);
        $this->assertInternalType('integer', $settings['anIntegerConstant']);
        $this->assertSame(PHP_VERSION_ID, $settings['anIntegerConstant']);
        $this->assertInternalType('string', $settings['casted']['to']['string']);
        $this->assertSame('Version id is ' . PHP_VERSION_ID, $settings['casted']['to']['string']);
    }
ConfigurationManagerTest