Skip to content

Commit 2123542

Browse files
authored
Merge pull request #8 from Codeception/phpunit9-fixes
PHPUnit 9 compatibility
2 parents eb43279 + ce78d1d commit 2123542

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Codeception/Lib/InnerBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ protected function proceedSeeInField(Crawler $fields, $value)
753753
}
754754
return [
755755
'Contains',
756-
$value,
756+
(string)$value,
757757
$testValues,
758758
sprintf(
759759
'Failed asserting that `%s` is in %s\'s value: %s',

tests/unit/Codeception/Module/TestsForWeb.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
abstract class TestsForWeb extends \Codeception\Test\Unit
1212
{
1313
/**
14-
* @var \Codeception\Module\PhpBrowser
14+
* @var \Codeception\Module\UniversalFramework
1515
*/
1616
protected $module;
1717

@@ -1416,7 +1416,7 @@ public function testCheckingOptionsWithComplexNames()
14161416
$this->module->checkOption('#bmessage-topicslinks input[value="4"]');
14171417
$this->module->click('Submit');
14181418
$data = data::get('form');
1419-
$this->assertContains(4, $data['BMessage']['topicsLinks']);
1419+
$this->assertContains('4', $data['BMessage']['topicsLinks']);
14201420
}
14211421

14221422
/**

0 commit comments

Comments
 (0)