Completed
Push — 1.x ( c0eb13...fc9cf1 )
by David
12:33
created

EmptyContainerTest::testContainer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace TheCodingMachine\Tdbm\GraphQL\Registry;
4
5
use PHPUnit\Framework\TestCase;
6
use Psr\Container\NotFoundExceptionInterface;
7
8
class EmptyContainerTest extends TestCase
9
{
10
    public function testContainer()
11
    {
12
        $container = new EmptyContainer();
13
        $this->assertFalse($container->has('foo'));
14
        $this->expectException(NotFoundExceptionInterface::class);
15
        $container->get('foo');
16
    }
17
}
18