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

its_services_are_initializable()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 15
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 7
nc 2
nop 0
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