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