File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \HttpKernel \Tests \DataCollector ;
13
13
14
- use Symfony \Component \Debug \ErrorHandler ;
15
14
use Symfony \Component \HttpKernel \DataCollector \LoggerDataCollector ;
16
15
17
16
class LoggerDataCollectorTest extends \PHPUnit_Framework_TestCase
Original file line number Diff line number Diff line change 20
20
use Symfony \Component \HttpFoundation \Request ;
21
21
use Symfony \Component \EventDispatcher \EventDispatcher ;
22
22
23
- class EsiListenerTest extends \PHPUnit_Framework_TestCase
23
+ class SurrogateListenerTest extends \PHPUnit_Framework_TestCase
24
24
{
25
25
public function testFilterDoesNothingForSubRequests ()
26
26
{
Original file line number Diff line number Diff line change @@ -274,21 +274,21 @@ public function doStuff()
274
274
$ this ->assertEquals ($ expected , $ output );
275
275
}
276
276
277
- public function testIsClassInActiveBundleFalse ()
277
+ public function testLegacyIsClassInActiveBundleFalse ()
278
278
{
279
279
$ kernel = $ this ->getKernelMockForIsClassInActiveBundleTest ();
280
280
281
281
$ this ->assertFalse ($ kernel ->isClassInActiveBundle ('Not\In\Active\Bundle ' ));
282
282
}
283
283
284
- public function testIsClassInActiveBundleFalseNoNamespace ()
284
+ public function testLegacyIsClassInActiveBundleFalseNoNamespace ()
285
285
{
286
286
$ kernel = $ this ->getKernelMockForIsClassInActiveBundleTest ();
287
287
288
288
$ this ->assertFalse ($ kernel ->isClassInActiveBundle ('NotNamespacedClass ' ));
289
289
}
290
290
291
- public function testIsClassInActiveBundleTrue ()
291
+ public function testLegacyIsClassInActiveBundleTrue ()
292
292
{
293
293
$ kernel = $ this ->getKernelMockForIsClassInActiveBundleTest ();
294
294
@@ -297,6 +297,8 @@ public function testIsClassInActiveBundleTrue()
297
297
298
298
protected function getKernelMockForIsClassInActiveBundleTest ()
299
299
{
300
+ $ this ->iniSet ('error_reporting ' , -1 & ~E_USER_DEPRECATED );
301
+
300
302
$ bundle = new FooBarBundle ();
301
303
302
304
$ kernel = $ this ->getKernel (array ('getBundles ' ));
You can’t perform that action at this time.
0 commit comments