1 | <?php |
||
8 | class TestContainer extends Container |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | protected $mocked = array(); |
||
14 | |||
15 | /** |
||
16 | * @var Prophet |
||
17 | */ |
||
18 | protected $prophet; |
||
19 | |||
20 | /** |
||
21 | * @param string $id The service identifier |
||
22 | * @param string|null $class Class or interface fully qualified name |
||
23 | * @return \Prophecy\Prophecy\ObjectProphecy |
||
24 | * @throws \InvalidArgumentException |
||
25 | * @throws \BadMethodCallException |
||
26 | * @throws \Prophecy\Exception\Prophecy\ObjectProphecyException |
||
27 | */ |
||
28 | public function prophesize($id, $class = null) |
||
43 | |||
44 | /** |
||
45 | * Remove all mocked services |
||
46 | */ |
||
47 | public function tearDown() |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function reset() |
||
63 | |||
64 | /** |
||
65 | * @param string $id |
||
66 | * @param mixed $mock |
||
67 | */ |
||
68 | public function setMock($id, $mock) |
||
72 | |||
73 | /** |
||
74 | * @param string $id |
||
75 | */ |
||
76 | public function unMock($id) |
||
80 | |||
81 | /** |
||
82 | * {@inheritdoc} |
||
83 | */ |
||
84 | public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE) |
||
92 | |||
93 | /** |
||
94 | * {@inheritdoc} |
||
95 | */ |
||
96 | public function has($id) |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | public function initialized($id) |
||
116 | |||
117 | /** |
||
118 | * @return array |
||
119 | */ |
||
120 | public function getMockedServices() |
||
124 | |||
125 | /** |
||
126 | * @return Prophet |
||
127 | */ |
||
128 | protected function getProphet() |
||
136 | |||
137 | /** |
||
138 | * @param string $service |
||
139 | * @return string |
||
140 | * @throws \BadMethodCallException |
||
141 | */ |
||
142 | protected function detectClass($service) |
||
146 | } |
||
147 | |||
148 |