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

UrlFixerBootstrapperTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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