downgrade phpunit version to support php 7.0
This commit is contained in:
parent
4610054aea
commit
3edb6b4b97
@ -32,7 +32,7 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"yiisoft/yii2-coding-standards": "~2.0",
|
||||
"phpunit/phpunit": "^7.5.20"
|
||||
"phpunit/phpunit": "^6.5.14"
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user