Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7bfff76

Browse filesBrowse 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
Copy full SHA for 7bfff76

File tree

2 files changed

+10
-1
lines changed
Filter options

2 files changed

+10
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/fake_app/AppService.php
+9Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/Tests/DeprecationErrorHandler/multiple_autoloads.phpt
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.