Skip to content

Commit 33b327e

Browse files
committed
fix tests
1 parent 84efbfb commit 33b327e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

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

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)