mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-19 17:58:21 +03:00
35 lines
895 B
PHP
35 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);
|
|
}
|
|
}
|