downgrade phpunit version to support php 7.0

This commit is contained in:
Simon Karlen 2021-08-04 08:09:56 +02:00
parent 4610054aea
commit 3edb6b4b97
No known key found for this signature in database
GPG Key ID: 0630C27D666EBCC3
2 changed files with 4 additions and 3 deletions

View File

@ -32,7 +32,7 @@
},
"require-dev": {
"yiisoft/yii2-coding-standards": "~2.0",
"phpunit/phpunit": "^7.5.20"
"phpunit/phpunit": "^6.5.14"
},
"repositories": [
{

View File

@ -2,6 +2,7 @@
namespace yiiunit\extensions\bootstrap5;
use PHPUnit\Framework\Constraint\IsType;
use Yii;
use yii\bootstrap5\Html;
use yii\bootstrap5\Popover;
@ -35,7 +36,7 @@ HTML;
$js = Yii::$app->view->js[View::POS_READY];
$this->assertIsArray($js);
$this->assertInternalType(IsType::TYPE_ARRAY, $js);
$options = array_shift($js);
$this->assertContainsWithoutLE("jQuery('#w0').popover({", $options);
@ -54,7 +55,7 @@ HTML;
$js = Yii::$app->view->js[View::POS_READY];
$this->assertIsArray($js);
$this->assertInternalType(IsType::TYPE_ARRAY, $js);
$options = array_shift($js);
$this->assertContainsWithoutLE('"content":"\u003Cspan class=\u0022test-content\u0022\u003ETest content\u003C\/span\u003E"', $options);