1 | <?php |
||
12 | abstract class ServiceManagerAwareTestCase extends \PHPUnit_Framework_TestCase |
||
13 | { |
||
14 | /** |
||
15 | * Array |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | private $configProviders = []; |
||
20 | |||
21 | /** |
||
22 | * Container |
||
23 | * |
||
24 | * @var ContainerInterface |
||
25 | */ |
||
26 | private $container; |
||
27 | |||
28 | /** |
||
29 | * Set up |
||
30 | * {@inheritDoc} |
||
31 | * @see PHPUnit_Framework_TestCase::setUp() |
||
32 | */ |
||
33 | protected function setUp() |
||
46 | |||
47 | /** |
||
48 | * Get config providers |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | public function getConfigProviders() : array |
||
56 | |||
57 | /** |
||
58 | * Set config providers |
||
59 | * |
||
60 | * @param array $configProviders |
||
61 | */ |
||
62 | public function setConfigProviders(array $configProviders) |
||
66 | |||
67 | /** |
||
68 | * Get container |
||
69 | * |
||
70 | * @return ContainerInterface |
||
71 | */ |
||
72 | public function getContainer() : ContainerInterface |
||
76 | |||
77 | /** |
||
78 | * Set container |
||
79 | * |
||
80 | * @param ContainerInterface $container |
||
81 | */ |
||
82 | public function setContainer(ContainerInterface $container) |
||
86 | |||
87 | /** |
||
88 | * Get config |
||
89 | * |
||
90 | * @return array |
||
91 | */ |
||
92 | public function getConfig() : \ArrayObject |
||
96 | } |