summaryrefslogtreecommitdiff
path: root/tests/Unit/Container/ServiceProviderTest.php
blob: b817e3bb69b22584cbd77bddff5a5b304b15887e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace Engelsystem\Test\Unit\Container;

use Engelsystem\Container\ServiceProvider;
use Engelsystem\Test\Unit\Container\Stub\ServiceProviderImplementation;
use Engelsystem\Test\Unit\ServiceProviderTest;

class ConfigServiceProviderTest extends ServiceProviderTest
{
    /**
     * @covers \Engelsystem\Container\ServiceProvider::__construct
     * @covers \Engelsystem\Container\ServiceProvider::register
     * @covers \Engelsystem\Container\ServiceProvider::boot
     */
    public function testRegister()
    {
        $app = $this->getApp();

        $serviceProvider = new ServiceProviderImplementation($app);

        $this->assertInstanceOf(ServiceProvider::class, $serviceProvider);

        $serviceProvider->register();
        $serviceProvider->boot();
    }
}