Completed
Push — master ( e0f002...12cea2 )
by Matthew
02:27
created

testLoadExtensionThrowsExceptionIfNotConfigured()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Matt
5
 * Date: 13/07/2016
6
 * Time: 3:39 PM
7
 */
8
9
namespace Mpclarkson\ResqueBundle\Tests\DependencyInjection;
10
11
12
use Mpclarkson\ResqueBundle\DependencyInjection\ResqueExtension;
13
use Symfony\Component\DependencyInjection\ContainerBuilder;
14
15
class ResqueExtensionTest extends \PHPUnit_Framework_TestCase
16
{
17
    /**
18
     * @var \Symfony\Component\DependencyInjection\ContainerBuilder
19
     */
20
    protected $containerBuilder;
21
22
    /**
23
     * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
24
     */
25
    public function testLoadExtensionThrowsExceptionIfNotConfigured()
26
    {
27
        $loader = new ResqueExtension();
28
        $config = array('key' => 'foo');
29
        $loader->load(array($config), new ContainerBuilder());
30
    }
31
}