<?php

namespace LifeStyle\SamlAuthBundle\Tests\DependencyInjection;

use LifeStyle\SamlAuthBundle\DependencyInjection\Configuration;
use Symfony\Component\Config\Definition\Processor;
use PHPUnit\Framework\TestCase;

/**
 * Class ConfigurationTest
 * @package LifeStyle\SamlAuthBundle
 */
class ConfigurationTest extends TestCase
{
    /**
     * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
     */
    public function testNoConfigForSaml()
    {
        $config = array(
            'providers' => array(
                'stub' => array(),
            ),
        );

        $processor = new Processor();
        $configuration = new Configuration(array(), array());
        $processor->processConfiguration($configuration, array($config));
    }
}
