Skip to content

Commit 5f9b10c

Browse files
committed
Fix deprecation on 4.3
1 parent 72340aa commit 5f9b10c

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)