Skip to content

Commit 29725c0

Browse files
minor #33000 Fix deprecations on 4.3 (jderusse)
This PR was merged into the 4.3 branch. Discussion ---------- Fix deprecations on 4.3 | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32844 | License | MIT | Doc PR | NA Fix deprecations in branch 4.3 note: remaining deprecation `assertStringContainsString` will be fixed in #32977 * [ ] fix tests in branch 3.4 in #32981 Commits ------- 8fd16a6bee Fix deprecation on 4.3
2 parents 8524e96 + 5f9b10c commit 29725c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Functional/ContainerDebugCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public function testPrivateAlias()
5757

5858
$tester = new ApplicationTester($application);
5959
$tester->run(['command' => 'debug:container', '--show-hidden' => true]);
60-
$this->assertNotContains('public', $tester->getDisplay());
61-
$this->assertNotContains('private_alias', $tester->getDisplay());
60+
$this->assertStringNotContainsString('public', $tester->getDisplay());
61+
$this->assertStringNotContainsString('private_alias', $tester->getDisplay());
6262

6363
$tester->run(['command' => 'debug:container']);
6464
$this->assertStringContainsString('public', $tester->getDisplay());
@@ -77,7 +77,7 @@ public function testIgnoreBackslashWhenFindingService(string $validServiceId)
7777

7878
$tester = new ApplicationTester($application);
7979
$tester->run(['command' => 'debug:container', 'name' => $validServiceId]);
80-
$this->assertNotContains('No services found', $tester->getDisplay());
80+
$this->assertStringNotContainsString('No services found', $tester->getDisplay());
8181
}
8282

8383
public function testDescribeEnvVars()

0 commit comments

Comments
 (0)