Passed
Push — master ( 5f2e18...7c1d11 )
by Johannes
05:10
created

ContainerConfigTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
 * Lichtenwallner  (https://lichtenwallner.at)
4
 *
5
 * @see https://github.com/jolicht/markdown-cms for the canonical source repository
6
 * @license https://github.com/jolicht/markdown-cms/blob/master/LICENSE MIT
7
 * @copyright Copyright (c) Johannes Lichtenwallner
8
 */
9
declare(strict_types = 1);
10
namespace Jolicht\MarkdownCms;
11
12
use PHPUnit\Framework\TestCase;
13
use Reddogs\Test\AuraDi\ContainerAwareTrait;
14
15
class ContainerConfigTest extends TestCase
16
{
17
    use ContainerAwareTrait;
18
19
    protected function setUp()
20
    {
21
        $this->setConfigProviders([ModuleConfig::class]);
22
        $this->setContainerConfigs([ContainerConfig::class]);
23
        $this->setUpContainer();
24
    }
25
26
    public function testDefine()
27
    {
28
        $container = $this->getContainer();
29
        $x = $container->get(\Sabre\Xml\Writer::class);
30
        $this->assertSame($x, $container->get(\Sabre\Xml\Writer::class));
31
    }
32
}