| @@ 176-193 (lines=18) @@ | ||
| 173 | /** |
|
| 174 | * @group legacy |
|
| 175 | */ |
|
| 176 | public function testNoProfilingWhenToolbarIsDisabled(): void |
|
| 177 | { |
|
| 178 | $this->load( |
|
| 179 | [ |
|
| 180 | 'toolbar' => [ |
|
| 181 | 'enabled' => false, |
|
| 182 | ], |
|
| 183 | 'clients' => [ |
|
| 184 | 'acme' => [ |
|
| 185 | 'factory' => 'httplug.factory.curl', |
|
| 186 | 'plugins' => ['foo'], |
|
| 187 | ], |
|
| 188 | ], |
|
| 189 | ] |
|
| 190 | ); |
|
| 191 | ||
| 192 | $this->verifyProfilingDisabled(); |
|
| 193 | } |
|
| 194 | ||
| 195 | public function testNoProfilingWhenNotInDebugMode(): void |
|
| 196 | { |
|
| @@ 195-210 (lines=16) @@ | ||
| 192 | $this->verifyProfilingDisabled(); |
|
| 193 | } |
|
| 194 | ||
| 195 | public function testNoProfilingWhenNotInDebugMode(): void |
|
| 196 | { |
|
| 197 | $this->setParameter('kernel.debug', false); |
|
| 198 | $this->load( |
|
| 199 | [ |
|
| 200 | 'clients' => [ |
|
| 201 | 'acme' => [ |
|
| 202 | 'factory' => 'httplug.factory.curl', |
|
| 203 | 'plugins' => ['foo'], |
|
| 204 | ], |
|
| 205 | ], |
|
| 206 | ] |
|
| 207 | ); |
|
| 208 | ||
| 209 | $this->verifyProfilingDisabled(); |
|
| 210 | } |
|
| 211 | ||
| 212 | /** |
|
| 213 | * @group legacy |
|
| @@ 215-233 (lines=19) @@ | ||
| 212 | /** |
|
| 213 | * @group legacy |
|
| 214 | */ |
|
| 215 | public function testProfilingWhenToolbarIsSpecificallyOn(): void |
|
| 216 | { |
|
| 217 | $this->setParameter('kernel.debug', false); |
|
| 218 | $this->load( |
|
| 219 | [ |
|
| 220 | 'toolbar' => [ |
|
| 221 | 'enabled' => true, |
|
| 222 | ], |
|
| 223 | 'clients' => [ |
|
| 224 | 'acme' => [ |
|
| 225 | 'factory' => 'httplug.factory.curl', |
|
| 226 | 'plugins' => ['foo'], |
|
| 227 | ], |
|
| 228 | ], |
|
| 229 | ] |
|
| 230 | ); |
|
| 231 | ||
| 232 | $this->assertContainerBuilderHasService(PluginClientFactoryListener::class); |
|
| 233 | } |
|
| 234 | ||
| 235 | public function testOverrideProfilingFormatter(): void |
|
| 236 | { |
|