2017-10-31 14:48:29 +01:00
|
|
|
<?php
|
|
|
|
|
2023-02-03 20:41:59 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2017-10-31 14:48:29 +01:00
|
|
|
namespace Engelsystem\Test\Unit\Container;
|
|
|
|
|
|
|
|
use Engelsystem\Container\ServiceProvider;
|
|
|
|
use Engelsystem\Test\Unit\Container\Stub\ServiceProviderImplementation;
|
2019-04-24 13:50:01 +02:00
|
|
|
use Engelsystem\Test\Unit\ServiceProviderTest as ServiceProviderTestCase;
|
2017-10-31 14:48:29 +01:00
|
|
|
|
2019-04-24 13:50:01 +02:00
|
|
|
class ServiceProviderTest extends ServiceProviderTestCase
|
2017-10-31 14:48:29 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @covers \Engelsystem\Container\ServiceProvider::__construct
|
2019-04-24 12:58:13 +02:00
|
|
|
* @covers \Engelsystem\Container\ServiceProvider::register
|
|
|
|
* @covers \Engelsystem\Container\ServiceProvider::boot
|
2017-10-31 14:48:29 +01:00
|
|
|
*/
|
2022-12-14 19:15:20 +01:00
|
|
|
public function testRegister(): void
|
2017-10-31 14:48:29 +01:00
|
|
|
{
|
|
|
|
$app = $this->getApp();
|
|
|
|
|
|
|
|
$serviceProvider = new ServiceProviderImplementation($app);
|
|
|
|
|
|
|
|
$this->assertInstanceOf(ServiceProvider::class, $serviceProvider);
|
2019-04-24 12:58:13 +02:00
|
|
|
|
|
|
|
$serviceProvider->register();
|
|
|
|
$serviceProvider->boot();
|
2017-10-31 14:48:29 +01:00
|
|
|
}
|
|
|
|
}
|