@@ -26,11 +26,11 @@ public function testShouldDisplayRegisteredTopics()
2626 $ tester ->execute ([]);
2727
2828 $ this ->assertSame (0 , $ tester ->getStatusCode ());
29- $ this ->assertContains ('| topic ' , $ tester ->getDisplay ());
30- $ this ->assertContains ('| theTopic ' , $ tester ->getDisplay ());
31- $ this ->assertContains ('| default (prefixed) ' , $ tester ->getDisplay ());
32- $ this ->assertContains ('| test_topic_subscriber_processor ' , $ tester ->getDisplay ());
33- $ this ->assertContains ('| (hidden) ' , $ tester ->getDisplay ());
29+ $ this ->assertStringContainsString ('| topic ' , $ tester ->getDisplay ());
30+ $ this ->assertStringContainsString ('| theTopic ' , $ tester ->getDisplay ());
31+ $ this ->assertStringContainsString ('| default (prefixed) ' , $ tester ->getDisplay ());
32+ $ this ->assertStringContainsString ('| test_topic_subscriber_processor ' , $ tester ->getDisplay ());
33+ $ this ->assertStringContainsString ('| (hidden) ' , $ tester ->getDisplay ());
3434 }
3535
3636 public function testShouldDisplayCommands ()
@@ -42,10 +42,10 @@ public function testShouldDisplayCommands()
4242 $ tester ->execute ([]);
4343
4444 $ this ->assertSame (0 , $ tester ->getStatusCode ());
45- $ this ->assertContains ('| command ' , $ tester ->getDisplay ());
46- $ this ->assertContains ('| theCommand ' , $ tester ->getDisplay ());
47- $ this ->assertContains ('| test_command_subscriber_processor ' , $ tester ->getDisplay ());
48- $ this ->assertContains ('| default (prefixed) ' , $ tester ->getDisplay ());
49- $ this ->assertContains ('| (hidden) ' , $ tester ->getDisplay ());
45+ $ this ->assertStringContainsString ('| command ' , $ tester ->getDisplay ());
46+ $ this ->assertStringContainsString ('| theCommand ' , $ tester ->getDisplay ());
47+ $ this ->assertStringContainsString ('| test_command_subscriber_processor ' , $ tester ->getDisplay ());
48+ $ this ->assertStringContainsString ('| default (prefixed) ' , $ tester ->getDisplay ());
49+ $ this ->assertStringContainsString ('| (hidden) ' , $ tester ->getDisplay ());
5050 }
5151}
0 commit comments