8000 minor #38043 [PhpUnitBridge] fix tests (xabbuh) · symfony/symfony@7bfff76 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7bfff76

Browse files
committed
minor #38043 [PhpUnitBridge] fix tests (xabbuh)
This PR was merged into the 5.1 branch. Discussion ---------- [PhpUnitBridge] fix tests | Q | A | ------------- | --- | Branch? | 5.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- 0a4cb62 fix tests
2 parents 0346026 + 0a4cb62 commit 7bfff76

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/fake_app/AppService.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,14 @@ public function indirectDeprecation(bool $useContracts = false)
3737
$service = new SomeService();
3838
$service->indirectDeprecatedApi($useContracts);
3939
}
40+
41+
public function directDeprecations()
42+
{
43+
$service1 = new SomeService();
44+
$service1->deprecatedApi();
45+
46+
$service2 = new SomeOtherService();
47+
$service2->deprecatedApi();
48+
}
4049
}
4150

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ require __DIR__.'/fake_vendor_bis/autoload.php';
3838
--EXPECTF--
3939
Remaining direct deprecation notices (2)
4040

41-
1x: deprecatedApi is deprecated! You should stop relying on it!
41+
1x: Since acme/lib 3.0: deprecatedApi is deprecated, use deprecatedApi_new instead.
4242
1x in AppService::directDeprecations from App\Services
4343

4444
1x: deprecatedApi from foo is deprecated! You should stop relying on it!

0 commit comments

Comments
 (0)
0