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
Push — master ( 55e41a...4bbae3 )
by Mario
04:35
created

CustomFieldHandlersPassTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 5
dl 0
loc 27
rs 10
1
<?php
2
3
namespace Netgen\Bundle\InformationCollectionBundle\Tests\DependencyInjection\Compiler;
4
5
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase;
6
use Netgen\Bundle\InformationCollectionBundle\DependencyInjection\Compiler\CustomFieldHandlersPass;
7
use Symfony\Component\DependencyInjection\ContainerBuilder;
8
use Symfony\Component\DependencyInjection\Definition;
9
use Symfony\Component\DependencyInjection\Reference;
10
11
class CustomFieldHandlersPassTest extends AbstractCompilerPassTestCase
12
{
13
    public function testCompilerPassCollectsValidServices()
14
    {
15
        $registry = new Definition();
16
        $this->setDefinition(CustomFieldHandlersPass::FIELD_HANDLER_REGISTRY, $registry);
17
18
        $fieldHandler = new Definition();
19
        $fieldHandler->addTag(CustomFieldHandlersPass::FIELD_HANDLER);
20
        $this->setDefinition('custom_handler', $fieldHandler);
21
22
        $this->compile();
23
24
        $this->assertContainerBuilderHasServiceDefinitionWithMethodCall(
25
            CustomFieldHandlersPass::FIELD_HANDLER_REGISTRY,
26
            'addHandler',
27
            array(
28
                new Reference('custom_handler'),
29
            )
30
        );
31
    }
32
33
    protected function registerCompilerPass(ContainerBuilder $container)
34
    {
35
        $container->addCompilerPass(new CustomFieldHandlersPass());
36
    }
37
}
38