diff --git a/composer.json b/composer.json index 866f4b2..9749857 100755 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "require-dev": { "illuminate/database": "^6.0|^7.0|^8.0", "mockery/mockery": "~1.0", - "phpunit/phpunit": "~7.1" + "phpunit/phpunit": "~8.5" }, "autoload": { "psr-4": { diff --git a/tests/FormBuilderTest.php b/tests/FormBuilderTest.php index 9845571..be0b2a2 100644 --- a/tests/FormBuilderTest.php +++ b/tests/FormBuilderTest.php @@ -669,11 +669,11 @@ class FormBuilderTest extends PHPUnit\Framework\TestCase $select2 = (string) $this->formBuilder->selectYear('year', 2000, 2020, null, ['id' => 'foo']); $select3 = (string) $this->formBuilder->selectYear('year', 2000, 2020, '2000'); - $this->assertContains('', $select1); - $this->assertContains('', $select2); - $this->assertContains('', $select3); } @@ -681,8 +681,8 @@ class FormBuilderTest extends PHPUnit\Framework\TestCase { $range = (string) $this->formBuilder->selectRange('dob', 1900, 2013); - $this->assertContains('', $range); + $this->assertStringContainsString('', $range); } public function testFormSelectMonth() @@ -691,10 +691,10 @@ class FormBuilderTest extends PHPUnit\Framework\TestCase $month2 = (string) $this->formBuilder->selectMonth('month', '1'); $month3 = (string) $this->formBuilder->selectMonth('month', null, ['id' => 'foo']); - $this->assertContains('', $month1); - $this->assertContains('', $month3); + $this->assertStringContainsString('', $month3); } public function testFormCheckbox()