@@ 164-181 (lines=18) @@ | ||
161 | /** |
|
162 | * @group legacy |
|
163 | */ |
|
164 | public function testNoProfilingWhenToolbarIsDisabled() |
|
165 | { |
|
166 | $this->load( |
|
167 | [ |
|
168 | 'toolbar' => [ |
|
169 | 'enabled' => false, |
|
170 | ], |
|
171 | 'clients' => [ |
|
172 | 'acme' => [ |
|
173 | 'factory' => 'httplug.factory.curl', |
|
174 | 'plugins' => ['foo'], |
|
175 | ], |
|
176 | ], |
|
177 | ] |
|
178 | ); |
|
179 | ||
180 | $this->verifyProfilingDisabled(); |
|
181 | } |
|
182 | ||
183 | public function testNoProfilingWhenNotInDebugMode() |
|
184 | { |
|
@@ 183-198 (lines=16) @@ | ||
180 | $this->verifyProfilingDisabled(); |
|
181 | } |
|
182 | ||
183 | public function testNoProfilingWhenNotInDebugMode() |
|
184 | { |
|
185 | $this->setParameter('kernel.debug', false); |
|
186 | $this->load( |
|
187 | [ |
|
188 | 'clients' => [ |
|
189 | 'acme' => [ |
|
190 | 'factory' => 'httplug.factory.curl', |
|
191 | 'plugins' => ['foo'], |
|
192 | ], |
|
193 | ], |
|
194 | ] |
|
195 | ); |
|
196 | ||
197 | $this->verifyProfilingDisabled(); |
|
198 | } |
|
199 | ||
200 | /** |
|
201 | * @group legacy |
|
@@ 203-221 (lines=19) @@ | ||
200 | /** |
|
201 | * @group legacy |
|
202 | */ |
|
203 | public function testProfilingWhenToolbarIsSpecificallyOn() |
|
204 | { |
|
205 | $this->setParameter('kernel.debug', false); |
|
206 | $this->load( |
|
207 | [ |
|
208 | 'toolbar' => [ |
|
209 | 'enabled' => true, |
|
210 | ], |
|
211 | 'clients' => [ |
|
212 | 'acme' => [ |
|
213 | 'factory' => 'httplug.factory.curl', |
|
214 | 'plugins' => ['foo'], |
|
215 | ], |
|
216 | ], |
|
217 | ] |
|
218 | ); |
|
219 | ||
220 | $this->assertContainerBuilderHasService(PluginClientFactoryListener::class); |
|
221 | } |
|
222 | ||
223 | public function testOverrideProfillingFormatter() |
|
224 | { |