@@ -61,8 +61,8 @@ public function testHelpCommand()
6161 $ result = CITestStreamFilter::$ buffer ;
6262
6363 // make sure the result looks like a command list
64- $ this ->assertContains ('Displays basic usage information. ' , $ result );
65- $ this ->assertContains ('command_name ' , $ result );
64+ $ this ->assertStringContainsString ('Displays basic usage information. ' , $ result );
65+ $ this ->assertStringContainsString ('command_name ' , $ result );
6666 }
6767
6868 public function testListCommands ()
@@ -71,16 +71,16 @@ public function testListCommands()
7171 $ result = CITestStreamFilter::$ buffer ;
7272
7373 // make sure the result looks like a command list
74- $ this ->assertContains ('Lists the available commands. ' , $ result );
75- $ this ->assertContains ('Displays basic usage information. ' , $ result );
74+ $ this ->assertStringContainsString ('Lists the available commands. ' , $ result );
75+ $ this ->assertStringContainsString ('Displays basic usage information. ' , $ result );
7676 }
7777
7878 public function testCustomCommand ()
7979 {
8080 $ this ->runner ->index (['app:info ' ]);
8181 $ result = CITestStreamFilter::$ buffer ;
8282
83- $ this ->assertContains ('CI Version: ' , $ result );
83+ $ this ->assertStringContainsString ('CI Version: ' , $ result );
8484 }
8585
8686 public function testShowError ()
@@ -91,7 +91,7 @@ public function testShowError()
9191
9292 $ command ->helpme ();
9393 $ result = CITestStreamFilter::$ buffer ;
94- $ this ->assertContains ('Displays basic usage information. ' , $ result );
94+ $ this ->assertStringContainsString ('Displays basic usage information. ' , $ result );
9595 }
9696
9797 public function testCommandCall ()
@@ -105,7 +105,7 @@ public function testCommandCall()
105105 $ result = CITestStreamFilter::$ buffer ;
106106 stream_filter_remove ($ this ->error_filter );
107107
108- $ this ->assertContains ('Invalid background color: ' , $ result );
108+ $ this ->assertStringContainsString ('Invalid background color: ' , $ result );
109109 }
110110
111111 public function testNonexistantCommand ()
@@ -116,7 +116,7 @@ public function testNonexistantCommand()
116116 $ this ->runner ->index (['app:oops ' ]);
117117 $ result = CITestStreamFilter::$ buffer ;
118118
119- $ this ->assertContains ('not found ' , $ result );
119+ $ this ->assertStringContainsString ('not found ' , $ result );
120120 }
121121
122122 public function testAbstractCommand ()
@@ -127,27 +127,27 @@ public function testAbstractCommand()
127127 $ this ->runner ->index (['app:pablo ' ]);
128128 $ result = CITestStreamFilter::$ buffer ;
129129
130- $ this ->assertContains ('not found ' , $ result );
130+ $ this ->assertStringContainsString ('not found ' , $ result );
131131 }
132132
133133 public function testNamespacesCommand ()
134134 {
135135 $ this ->runner ->index (['namespaces ' ]);
136136 $ result = CITestStreamFilter::$ buffer ;
137137
138- $ this ->assertContains ('| Namespace ' , $ result );
139- $ this ->assertContains ('| Config ' , $ result );
140- $ this ->assertContains ('| Yes ' , $ result );
138+ $ this ->assertStringContainsString ('| Namespace ' , $ result );
139+ $ this ->assertStringContainsString ('| Config ' , $ result );
140+ $ this ->assertStringContainsString ('| Yes ' , $ result );
141141 }
142142
143143 public function testRoutesCommand ()
144144 {
145145 $ this ->runner ->index (['routes ' ]);
146146 $ result = CITestStreamFilter::$ buffer ;
147147
148- $ this ->assertContains ('| Route ' , $ result );
149- $ this ->assertContains ('| testing ' , $ result );
150- $ this ->assertContains ('\\TestController::index ' , $ result );
148+ $ this ->assertStringContainsString ('| Route ' , $ result );
149+ $ this ->assertStringContainsString ('| testing ' , $ result );
150+ $ this ->assertStringContainsString ('\\TestController::index ' , $ result );
151151 }
152152
153153}
0 commit comments