Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7822436

Browse files
Merge branch '4.0'
* 4.0: [Bridge/PhpUnit] Fix tests by backporting #25997 to 3.4
2 parents 998531d + 8be6e19 commit 7822436

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

src/Symfony/Bridge/PhpUnit/CHANGELOG.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
CHANGELOG
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-
104
4.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

2622
3.3.0
2723
-----

src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/fake_vendor/acme/lib/deprecation_riddled.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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()

src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/weak_vendors_on_vendor.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

3838
Other deprecation notices (1)
3939

0 commit comments

Comments
 (0)