mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-24 05:28:20 +03:00
36 lines
895 B
PHP
36 lines
895 B
PHP
|
<?php
|
||
|
namespace ShlinkioTest\Shlink\Common\ErrorHandler;
|
||
|
|
||
|
use PHPUnit_Framework_TestCase as TestCase;
|
||
|
use Shlinkio\Shlink\Common\ErrorHandler\ErrorHandlerManager;
|
||
|
use Shlinkio\Shlink\Common\ErrorHandler\ErrorHandlerManagerFactory;
|
||
|
use Zend\ServiceManager\ServiceManager;
|
||
|
|
||
|
class ErrorHandlerManagerFactoryTest extends TestCase
|
||
|
{
|
||
|
/**
|
||
|
* @var ErrorHandlerManagerFactory
|
||
|
*/
|
||
|
protected $factory;
|
||
|
|
||
|
public function setUp()
|
||
|
{
|
||
|
$this->factory = new ErrorHandlerManagerFactory();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @test
|
||
|
*/
|
||
|
public function serviceIsCreated()
|
||
|
{
|
||
|
$instance = $this->factory->__invoke(new ServiceManager(['services' => [
|
||
|
'config' => [
|
||
|
'error_handler' => [
|
||
|
'plugins' => [],
|
||
|
],
|
||
|
],
|
||
|
]]), '');
|
||
|
$this->assertInstanceOf(ErrorHandlerManager::class, $instance);
|
||
|
}
|
||
|
}
|