@@ -8,28 +8,28 @@ public function testPeriodicExampleWithPipedInputEndsBecauseInputEnds()
88 {
99 $ output = $ this ->execExample ('echo hello | php 01-periodic.php ' );
1010
11- $ this ->assertContains ('you just said: hello\n ' , $ output );
11+ $ this ->assertContainsString ('you just said: hello\n ' , $ output );
1212 }
1313
1414 public function testPeriodicExampleWithNullInputQuitsImmediately ()
1515 {
1616 $ output = $ this ->execExample ('php 01-periodic.php < /dev/null ' );
1717
18- $ this ->assertNotContains ('you just said: ' , $ output );
18+ $ this ->assertNotContainsString ('you just said: ' , $ output );
1919 }
2020
2121 public function testPeriodicExampleWithNoInputQuitsImmediately ()
2222 {
2323 $ output = $ this ->execExample ('true | php 01-periodic.php ' );
2424
25- $ this ->assertNotContains ('you just said: ' , $ output );
25+ $ this ->assertNotContainsString ('you just said: ' , $ output );
2626 }
2727
2828 public function testPeriodicExampleWithSleepNoInputQuitsOnEnd ()
2929 {
3030 $ output = $ this ->execExample ('sleep 0.1 | php 01-periodic.php ' );
3131
32- $ this ->assertNotContains ('you just said: ' , $ output );
32+ $ this ->assertNotContainsString ('you just said: ' , $ output );
3333 }
3434
3535 public function testPeriodicExampleWithClosedInputQuitsImmediately ()
@@ -40,7 +40,7 @@ public function testPeriodicExampleWithClosedInputQuitsImmediately()
4040 $ this ->markTestIncomplete ('Your platform exhibits a closed STDIN bug, this may need some further debugging ' );
4141 }
4242
43- $ this ->assertNotContains ('you just said: ' , $ output );
43+ $ this ->assertNotContainsString ('you just said: ' , $ output );
4444 }
4545
4646 public function testPeriodicExampleWithClosedInputAndOutputQuitsImmediatelyWithoutOutput ()
@@ -58,28 +58,28 @@ public function testBindingsExampleWithPipedInputEndsBecauseInputEnds()
5858 {
5959 $ output = $ this ->execExample ('echo test | php 04-bindings.php ' );
6060
61- $ this ->assertContains ('you just said: test (4) ' . PHP_EOL , $ output );
61+ $ this ->assertContainsString ('you just said: test (4) ' . PHP_EOL , $ output );
6262 }
6363
6464 public function testBindingsExampleWithPipedInputEndsWithSpecialBindingsReplacedBecauseInputEnds ()
6565 {
6666 $ output = $ this ->execExample ('echo hello | php 04-bindings.php ' );
6767
68- $ this ->assertContains ('you just said: hellö (6) ' . PHP_EOL , $ output );
68+ $ this ->assertContainsString ('you just said: hellö (6) ' . PHP_EOL , $ output );
6969 }
7070
7171 public function testStubShowStdinIsReadableByDefault ()
7272 {
7373 $ output = $ this ->execExample ('php ../tests/stub/01-check-stdin.php ' );
7474
75- $ this ->assertContains ('YES ' , $ output );
75+ $ this ->assertContainsString ('YES ' , $ output );
7676 }
7777
7878 public function testStubCanCloseStdinAndIsNotReadable ()
7979 {
8080 $ output = $ this ->execExample ('php ../tests/stub/02-close-stdin.php ' );
8181
82- $ this ->assertContains ('NO ' , $ output );
82+ $ this ->assertContainsString ('NO ' , $ output );
8383 }
8484
8585 public function testStubCanCloseStdoutAndIsNotWritable ()
@@ -113,7 +113,7 @@ public function testPeriodicExampleViaInteractiveModeQuitsImmediately()
113113
114114 // starts with either "Interactive mode enabled" or "Interactive shell"
115115 $ this ->assertStringStartsWith ('Interactive ' , $ output );
116- $ this ->assertNotContains ('you just said: ' , $ output );
116+ $ this ->assertNotContainsString ('you just said: ' , $ output );
117117 }
118118
119119 private function execExample ($ command )
0 commit comments