Skip to content

Commit 736526a

Browse files
committed
Use assertStringContainsString for asserting strings
1 parent b2962b5 commit 736526a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/Codeception/Module/PhpBrowserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ public function testRequestApi()
557557
$data = data::get('form');
558558
$this->assertEquals('davert', $data['user']);
559559
$this->assertInternalType('string', $response);
560-
$this->assertContains('Welcome to test app', $response);
560+
$this->assertStringContainsString('Welcome to test app', $response);
561561
$this->module->click('Welcome to test app'); // page not loaded
562562
}
563563

0 commit comments

Comments
 (0)