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