blob: 7984a12b938daac034e23b733e9fd3b1cd719223 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
use Kanboard\ServiceProvider\FormatterProvider;
use Pimple\Container;
require_once __DIR__.'/../Base.php';
class FormatterProviderTest extends Base
{
public function testServiceInstance()
{
$container = new Container();
$serviceProvider = new FormatterProvider($container);
$serviceProvider->register($container);
$instance1 = $container['userAutoCompleteFormatter'];
$instance2 = $container['userAutoCompleteFormatter'];
$this->assertNotSame($instance1, $instance2);
}
}
|