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
-------
0a4cb62677
fix tests
This commit is contained in:
commit
7bfff76fae
@ -37,5 +37,14 @@ final class AppService
|
||||
$service = new SomeService();
|
||||
$service->indirectDeprecatedApi($useContracts);
|
||||
}
|
||||
|
||||
public function directDeprecations()
|
||||
{
|
||||
$service1 = new SomeService();
|
||||
$service1->deprecatedApi();
|
||||
|
||||
$service2 = new SomeOtherService();
|
||||
$service2->deprecatedApi();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ require __DIR__.'/fake_vendor_bis/autoload.php';
|
||||
--EXPECTF--
|
||||
Remaining direct deprecation notices (2)
|
||||
|
||||
1x: deprecatedApi is deprecated! You should stop relying on it!
|
||||
1x: Since acme/lib 3.0: deprecatedApi is deprecated, use deprecatedApi_new instead.
|
||||
1x in AppService::directDeprecations from App\Services
|
||||
|
||||
1x: deprecatedApi from foo is deprecated! You should stop relying on it!
|
||||
|
Reference in New Issue
Block a user