GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch master (2e2559)
by Enrico
02:28
created

ConfigurationTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 2
Bugs 1 Features 1
Metric Value
wmc 2
c 2
b 1
f 1
lcom 1
cbo 3
dl 0
loc 28
rs 10
1
<?php
2
3
/*
4
 * This file is part of the guzzle-stereo-bundle package.
5
 *
6
 * (c) Enrico Stahn <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace EnricoStahn\Bundle\GuzzleStereoBundle\Tests\DependencyInjection;
13
14
use EnricoStahn\Bundle\GuzzleStereoBundle\DependencyInjection\Configuration;
15
use Symfony\Component\Config\Definition\Processor;
16
17
class ConfigurationTest extends \PHPUnit_Framework_TestCase
18
{
19
    public function testProcessSimpleCase()
20
    {
21
        $configs = array(
22
            array(
23
                'log_dir' => '/foo/bar',
24
            ),
25
        );
26
        $config = $this->process($configs);
27
        self::assertArrayHasKey('log_dir', $config);
28
        self::assertEquals('/foo/bar', $config['log_dir']);
29
    }
30
31
    /**
32
     * Processes an array of configurations and returns a compiled version.
33
     *
34
     * @param array $configs An array of raw configurations
35
     *
36
     * @return array A normalized array
37
     */
38
    protected function process($configs)
39
    {
40
        $processor = new Processor();
41
42
        return $processor->processConfiguration(new Configuration(), $configs);
43
    }
44
}
45