downgrade phpunit version to support php 7.0
This commit is contained in:
parent
4610054aea
commit
3edb6b4b97
@ -32,7 +32,7 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"yiisoft/yii2-coding-standards": "~2.0",
|
"yiisoft/yii2-coding-standards": "~2.0",
|
||||||
"phpunit/phpunit": "^7.5.20"
|
"phpunit/phpunit": "^6.5.14"
|
||||||
},
|
},
|
||||||
"repositories": [
|
"repositories": [
|
||||||
{
|
{
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace yiiunit\extensions\bootstrap5;
|
namespace yiiunit\extensions\bootstrap5;
|
||||||
|
|
||||||
|
use PHPUnit\Framework\Constraint\IsType;
|
||||||
use Yii;
|
use Yii;
|
||||||
use yii\bootstrap5\Html;
|
use yii\bootstrap5\Html;
|
||||||
use yii\bootstrap5\Popover;
|
use yii\bootstrap5\Popover;
|
||||||
@ -35,7 +36,7 @@ HTML;
|
|||||||
|
|
||||||
$js = Yii::$app->view->js[View::POS_READY];
|
$js = Yii::$app->view->js[View::POS_READY];
|
||||||
|
|
||||||
$this->assertIsArray($js);
|
$this->assertInternalType(IsType::TYPE_ARRAY, $js);
|
||||||
$options = array_shift($js);
|
$options = array_shift($js);
|
||||||
|
|
||||||
$this->assertContainsWithoutLE("jQuery('#w0').popover({", $options);
|
$this->assertContainsWithoutLE("jQuery('#w0').popover({", $options);
|
||||||
@ -54,7 +55,7 @@ HTML;
|
|||||||
|
|
||||||
$js = Yii::$app->view->js[View::POS_READY];
|
$js = Yii::$app->view->js[View::POS_READY];
|
||||||
|
|
||||||
$this->assertIsArray($js);
|
$this->assertInternalType(IsType::TYPE_ARRAY, $js);
|
||||||
$options = array_shift($js);
|
$options = array_shift($js);
|
||||||
|
|
||||||
$this->assertContainsWithoutLE('"content":"\u003Cspan class=\u0022test-content\u0022\u003ETest content\u003C\/span\u003E"', $options);
|
$this->assertContainsWithoutLE('"content":"\u003Cspan class=\u0022test-content\u0022\u003ETest content\u003C\/span\u003E"', $options);
|
||||||
|
Loading…
Reference in New Issue
Block a user