Passed
Push — main ( 9c59f2...5fac80 )
by Peter
02:52
created

UrlFixerBootstrapperTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 3 1
A testRegisterBindings() 0 8 1
1
<?php
2
3
namespace AbterPhp\Framework\Bootstrappers\Vendor;
4
5
use AbterPhp\Framework\Assets\UrlFixer;
6
use Opulence\Ioc\Container;
7
use PHPUnit\Framework\TestCase;
8
9
class UrlFixerBootstrapperTest extends TestCase
10
{
11
    /** @var UrlFixerBootstrapper */
12
    protected UrlFixerBootstrapper $sut;
13
14
    public function setUp(): void
15
    {
16
        $this->sut = new UrlFixerBootstrapper();
17
    }
18
19
    public function testRegisterBindings()
20
    {
21
        $container = new Container();
22
23
        $this->sut->registerBindings($container);
24
25
        $actual = $container->resolve(UrlFixer::class);
26
        $this->assertInstanceOf(UrlFixer::class, $actual);
27
    }
28
}
29