<?php

namespace Alchemy\Tests\Phrasea\Core\Configuration;

use Alchemy\Phrasea\Core\Configuration\Configuration;
use Alchemy\Phrasea\Core\Configuration\Compiler;
use Symfony\Component\Yaml\Yaml;

/**
 * @group functional
 * @group legacy
 */
class ConfigurationTest extends ConfigurationTestCase
{
    protected function provideConfiguration($confFile, $compiledFile = null, Compiler $compiler = null, Yaml $yaml = null, $autoreload = false)
    {
        if (null === $compiledFile) {
            $compiledFile = $this->compiled;
        }

        if (null === $yaml) {
            $yaml = new Yaml();
        }
        if (null === $compiler) {
            $compiler = new Compiler();
        }

        return new Configuration($yaml, $compiler, $confFile, $compiledFile, $autoreload);
    }
}
