blob: 7c7099a5b24ea1759c14829238c068da2a209b2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<?php
/**
* PHPPgAdmin 6.1.3
*/
/**
* PHPPgAdmin vv6.0.0-RC8-16-g13de173f.
*
* @internal
* @coversNothing
*/
class ContainerTest extends \Codeception\Test\Unit
{
protected static $BASE_PATH;
/**
* @var \UnitTester
*/
protected $tester;
/**
* Undocumented variable.
*
* @var null|\PHPPgAdmin\ContainerUtils
*/
protected $container;
public function testContainerValidity(): void
{
self::assertTrue(
$this->container instanceof \Psr\Container\ContainerInterface,
'$container must be an instance of \Psr\Container\ContainerInterface'
);
}
public function testContainerUtils(): void
{
self::assertTrue(
$this->container instanceof \PHPPgAdmin\ContainerUtils,
'$container->utils must be an instance of PHPPgAdmin\ContainerUtils'
);
}
public function testContainermisc(): void
{
self::assertTrue(
$this->container->misc instanceof \PHPPgAdmin\Misc,
'$container->misc must be an instance of \PHPPgAdmin\Misc'
);
}
public function testContainerview(): void
{
self::assertTrue(
$this->container->view instanceof \Slim\Views\Twig,
'$container->view must be an instance of \Slim\Views\Twig'
);
}
protected function _before(): void
{
$this->container = containerInstance();
self::$BASE_PATH = $this->container->BASE_PATH;
$this->container->get('misc')->setNoDBConnection(true);
}
}
|