2017-10-31 14:48:29 +01:00
|
|
|
<?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
|
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
|
|
|
*/
|
|
|
|
public function testRegister()
|
|
|
|
{
|
|
|
|
$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
|
|
|
}
|
|
|
|
}
|