Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php declare(strict_types=1); |
||
28 | 1 | $emptyMap = new TransportMap; |
|
29 | /** @var TransportInterface $transportMock */ |
||
30 | 1 | $transportMock = $this->createMock(TransportInterface::class); |
|
31 | 1 | $transportMap = $emptyMap->with('mock', $transportMock); |
|
32 | 1 | $this->assertCount(1, $transportMap); |
|
33 | 1 | $this->assertEquals($transportMock, $transportMap->get('mock')); |
|
34 | 1 | $this->assertTrue($emptyMap->isEmpty()); |
|
37 |