Completed
Push — 1.0-symfony2-rename ( d9b26c )
by Kamil
83:12 queued 62:42
created

SyliusAddressingBundleTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 21
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A its_services_are_initializable() 0 15 2
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
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
declare(strict_types=1);
13
14
namespace Sylius\Bundle\AddressingBundle\Tests;
15
16
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
17
use Symfony\Component\DependencyInjection\ContainerBuilder;
18
19
class SyliusAddressingBundleTest extends WebTestCase
20
{
21
    /**
22
     * @test
23
     */
24
    public function its_services_are_initializable(): void
25
    {
26
        /** @var ContainerBuilder $container */
27
        $container = self::createClient()->getContainer();
28
29
        $services = $container->getServiceIds();
30
31
        $services = array_filter($services, function (string $serviceId): bool {
32
            return 0 === strpos($serviceId, 'sylius.');
33
        });
34
35
        foreach ($services as $id) {
36
            $container->get($id);
37
        }
38
    }
39
}
40