@@ -18,17 +18,17 @@ public function testPrintStats()
18
18
{
19
19
$ object = $ this ->_createObject (0 , 0 );
20
20
$ result = $ object ->printStats ();
21
- $ this ->assertContains ('Memory usage (OS): ' , $ result );
22
- $ this ->assertContains ('1.00M ' , $ result );
23
- $ this ->assertContains ('Estimated memory leak: ' , $ result );
24
- $ this ->assertContains ('reported by PHP ' , $ result );
21
+ $ this ->assertStringContainsString ('Memory usage (OS): ' , $ result );
22
+ $ this ->assertStringContainsString ('1.00M ' , $ result );
23
+ $ this ->assertStringContainsString ('Estimated memory leak: ' , $ result );
24
+ $ this ->assertStringContainsString ('reported by PHP ' , $ result );
25
25
$ this ->assertStringEndsWith (PHP_EOL , $ result );
26
26
27
27
$ object = $ this ->_createObject ('2M ' , 0 );
28
- $ this ->assertContains ('50.00% of configured 2.00M limit ' , $ object ->printStats ());
28
+ $ this ->assertStringContainsString ('50.00% of configured 2.00M limit ' , $ object ->printStats ());
29
29
30
30
$ object = $ this ->_createObject (0 , '500K ' );
31
- $ this ->assertContains ('% of configured 0.49M limit ' , $ object ->printStats ());
31
+ $ this ->assertStringContainsString ('% of configured 0.49M limit ' , $ object ->printStats ());
32
32
}
33
33
34
34
public function testValidateUsage ()
0 commit comments