File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
src/Symfony/Bridge/PhpUnit
Tests/DeprecationErrorHandler Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 11CHANGELOG
22=========
33
4- 4.1.0
5- -----
6-
7- * all deprecations but those from tests marked with ` @group legacy ` are always
8- displayed when not in ` weak ` mode.
9-
1044.0.0
115-----
126
@@ -22,6 +16,8 @@ CHANGELOG
2216-----
2317
2418 * added a ` CoverageListener ` to enhance the code coverage report
19+ * all deprecations but those from tests marked with ` @group legacy ` are always
20+ displayed when not in ` weak ` mode
2521
26223.3.0
2723-----
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ public function testLegacyFoo()
2121 {
2222 @trigger_error ('silenced foo deprecation ' , E_USER_DEPRECATED );
2323 trigger_error ('unsilenced foo deprecation ' , E_USER_DEPRECATED );
24+ @trigger_error ('silenced foo deprecation ' , E_USER_DEPRECATED );
25+ trigger_error ('unsilenced foo deprecation ' , E_USER_DEPRECATED );
2426 }
2527
2628 public function testNonLegacyBar ()
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ require __DIR__.'/fake_vendor/acme/lib/deprecation_riddled.php';
2020
2121?>
2222--EXPECTF--
23- Unsilenced deprecation notices (2 )
23+ Unsilenced deprecation notices (3 )
2424
25- 1x : unsilenced foo deprecation
26- 1x in FooTestCase::testLegacyFoo
25+ 2x : unsilenced foo deprecation
26+ 2x in FooTestCase::testLegacyFoo
2727
2828 1x: unsilenced bar deprecation
2929 1x in FooTestCase::testNonLegacyBar
@@ -33,7 +33,7 @@ Remaining vendor deprecation notices (1)
3333 1x: silenced bar deprecation
3434 1x in FooTestCase::testNonLegacyBar
3535
36- Legacy deprecation notices (1 )
36+ Legacy deprecation notices (2 )
3737
3838Other deprecation notices (1)
3939
You can’t perform that action at this time.
0 commit comments