Skip to content

Instantly share code, notes, and snippets.

@mikehaertl
Created February 3, 2017 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikehaertl/c2d4fb8a10a4dd2538b99def3faa2eac to your computer and use it in GitHub Desktop.
Save mikehaertl/c2d4fb8a10a4dd2538b99def3faa2eac to your computer and use it in GitHub Desktop.
PHPUnit 5.1.3 by Sebastian Bergmann and contributors.
FFSSE.EFFF.....EFEFFFEEEEE.. 28 / 28 (100%)
Time: 37 ms, Memory: 6.00Mb
There were 9 errors:
1) yiiunit\extensions\bootstrap\ButtonDropdownTest::testContainerOptions
Array to string conversion
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/helpers/BaseHtml.php:1696
/home/repos/yii2-bootstrap/ButtonDropdown.php:83
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Widget.php:96
/home/repos/yii2-bootstrap/tests/ButtonDropdownTest.php:19
/usr/bin/phpunit:29
2) yiiunit\extensions\bootstrap\CollapseTest::testRender
Array to string conversion
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/helpers/BaseHtml.php:1696
/home/repos/yii2-bootstrap/Collapse.php:111
/home/repos/yii2-bootstrap/Collapse.php:91
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Widget.php:96
/home/repos/yii2-bootstrap/tests/CollapseTest.php:71
/usr/bin/phpunit:29
3) yiiunit\extensions\bootstrap\NavBarTest::testRender
Array to string conversion
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/helpers/BaseHtml.php:1696
/home/repos/yii2-bootstrap/NavBar.php:101
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Object.php:107
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/di/Container.php:372
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/di/Container.php:151
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/BaseYii.php:344
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Widget.php:95
/home/repos/yii2-bootstrap/tests/NavBarTest.php:18
/usr/bin/phpunit:29
4) yiiunit\extensions\bootstrap\NavTest::testRenderDropDownWithDropDownOptions
Array to string conversion
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/helpers/BaseHtml.php:1696
/home/repos/yii2-bootstrap/Dropdown.php:81
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Object.php:107
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/di/Container.php:372
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/di/Container.php:151
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/BaseYii.php:344
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Widget.php:95
/home/repos/yii2-bootstrap/Nav.php:224
/home/repos/yii2-bootstrap/Nav.php:196
/home/repos/yii2-bootstrap/Nav.php:152
/home/repos/yii2-bootstrap/Nav.php:139
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Widget.php:96
/home/repos/yii2-bootstrap/tests/NavTest.php:101
/usr/bin/phpunit:29
5) yiiunit\extensions\bootstrap\NavTest::testExplicitActiveSubitems
Array to string conversion
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/helpers/BaseHtml.php:1696
/home/repos/yii2-bootstrap/Dropdown.php:124
/home/repos/yii2-bootstrap/Dropdown.php:91
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Widget.php:96
/home/repos/yii2-bootstrap/Nav.php:224
/home/repos/yii2-bootstrap/Nav.php:196
/home/repos/yii2-bootstrap/Nav.php:152
/home/repos/yii2-bootstrap/Nav.php:139
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Widget.php:96
/home/repos/yii2-bootstrap/tests/NavTest.php:216
/usr/bin/phpunit:29
6) yiiunit\extensions\bootstrap\NavTest::testImplicitActiveSubitems
Array to string conversion
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/helpers/BaseHtml.php:1696
/home/repos/yii2-bootstrap/Dropdown.php:124
/home/repos/yii2-bootstrap/Dropdown.php:91
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Widget.php:96
/home/repos/yii2-bootstrap/Nav.php:224
/home/repos/yii2-bootstrap/Nav.php:196
/home/repos/yii2-bootstrap/Nav.php:152
/home/repos/yii2-bootstrap/Nav.php:139
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Widget.php:96
/home/repos/yii2-bootstrap/tests/NavTest.php:261
/usr/bin/phpunit:29
7) yiiunit\extensions\bootstrap\TabsTest::testIds
Array to string conversion
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/helpers/BaseHtml.php:1695
/home/repos/yii2-bootstrap/Tabs.php:194
/home/repos/yii2-bootstrap/Tabs.php:143
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Widget.php:96
/home/repos/yii2-bootstrap/tests/TabsTest.php:47
/usr/bin/phpunit:29
8) yiiunit\extensions\bootstrap\TabsTest::testVisible
Array to string conversion
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/helpers/BaseHtml.php:1695
/home/repos/yii2-bootstrap/Tabs.php:194
/home/repos/yii2-bootstrap/Tabs.php:143
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Widget.php:96
/home/repos/yii2-bootstrap/tests/TabsTest.php:113
/usr/bin/phpunit:29
9) yiiunit\extensions\bootstrap\TabsTest::testItem
Array to string conversion
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/helpers/BaseHtml.php:1695
/home/repos/yii2-bootstrap/Tabs.php:194
/home/repos/yii2-bootstrap/Tabs.php:143
/home/repos/yii2-bootstrap/vendor/yiisoft/yii2/base/Widget.php:96
/home/repos/yii2-bootstrap/tests/TabsTest.php:134
/usr/bin/phpunit:29
--
There were 9 failures:
1) yiiunit\extensions\bootstrap\ActiveFieldTest::testRadioList
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
'<div class="form-group field-dynamicmodel-attributename">
-<label class="control-label">Attribute Name</label>
+<label class="control-label" for="dynamicmodel-attributename">Attribute Name</label>
<input type="hidden" name="DynamicModel[attributeName]" value=""><div id="dynamicmodel-attributename"><div class="radio"><label><input type="radio" name="DynamicModel[attributeName]" value="1"> name1</label></div>
<div class="radio"><label><input type="radio" name="DynamicModel[attributeName]" value="2"> name2</label></div></div>
<p class="help-block help-block-error"></p>
</div>'
/home/repos/yii2-bootstrap/tests/TestCase.php:81
/home/repos/yii2-bootstrap/tests/ActiveFieldTest.php:62
/usr/bin/phpunit:29
2) yiiunit\extensions\bootstrap\ActiveFieldTest::testCheckboxList
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
'<div class="form-group field-dynamicmodel-attributename">
-<label class="control-label">Attribute Name</label>
+<label class="control-label" for="dynamicmodel-attributename">Attribute Name</label>
<input type="hidden" name="DynamicModel[attributeName]" value=""><div id="dynamicmodel-attributename"><div class="checkbox"><label><input type="checkbox" name="DynamicModel[attributeName][]" value="1"> name1</label></div>
<div class="checkbox"><label><input type="checkbox" name="DynamicModel[attributeName][]" value="2"> name2</label></div></div>
<p class="help-block help-block-error"></p>
</div>'
/home/repos/yii2-bootstrap/tests/TestCase.php:81
/home/repos/yii2-bootstrap/tests/ActiveFieldTest.php:78
/usr/bin/phpunit:29
3) yiiunit\extensions\bootstrap\CollapseTest::testRenderObject
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<div id="w0" class="panel-group">
-<div class="panel panel-default"><div class="panel-heading"><h4 class="panel-title"><a class="collapse-toggle" href="#w0-collapse1" data-toggle="collapse" data-parent="#w0">Collapsible Group Item #1</a>
+'<div id="w0" class='{"widget":"panel-group"}'>
+<div class='{"panel":"panel","widget":"panel-default"}'><div class="panel-heading"><h4 class="panel-title"><a class="collapse-toggle" href="#w0-collapse1" data-toggle="collapse" data-parent="#w0">Collapsible Group Item #1</a>
</h4></div>
-<div id="w0-collapse1" class="panel-collapse collapse"><div class="panel-body"><div class="form-group field-singer-firstname">
+<div id="w0-collapse1" class='{"widget":"panel-collapse","collapse":"collapse"}'><div class="panel-body"><div class="form-group field-singer-firstname">
<input type="text" id="singer-firstname" class="form-control" name="Singer[firstName]">
</div></div>
</div></div>
</div>
'
/home/repos/yii2-bootstrap/tests/TestCase.php:81
/home/repos/yii2-bootstrap/tests/CollapseTest.php:142
/usr/bin/phpunit:29
4) yiiunit\extensions\bootstrap\DropdownTest::testIds
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<ul id="w0" class="dropdown-menu"><li class="dropdown-header">Page1</li>
-<li class="dropdown-submenu"><a href="#" tabindex="-1">Dropdown1</a><ul><li class="dropdown-header">Page2</li>
-<li class="dropdown-header">Page3</li></ul></li></ul>'
+'<ul id="w0" class='{"widget":"dropdown-menu"}'><li class='{"widget":"dropdown-header"}'>Page1</li>
+<li class='{"widget":"dropdown-submenu"}'><a href="#" tabindex="-1">Dropdown1</a><ul><li class='{"widget":"dropdown-header"}'>Page2</li>
+<li class='{"widget":"dropdown-header"}'>Page3</li></ul></li></ul>'
/home/repos/yii2-bootstrap/tests/TestCase.php:81
/home/repos/yii2-bootstrap/tests/DropdownTest.php:48
/usr/bin/phpunit:29
5) yiiunit\extensions\bootstrap\DropdownTest::testSubMenuOptions
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<ul id="w0" class="dropdown-menu"><li class="dropdown-submenu"><a href="#" tabindex="-1">Dropdown1</a><ul class="submenu-list"><li class="dropdown-header">Page1</li>
-<li class="dropdown-header">Page2</li></ul></li>
-<li class="dropdown-submenu"><a href="#" tabindex="-1">Dropdown2</a><ul class="submenu-override"><li class="dropdown-header">Page3</li>
-<li class="dropdown-header">Page4</li></ul></li></ul>'
+'<ul id="w0" class='{"widget":"dropdown-menu"}'><li class='{"widget":"dropdown-submenu"}'><a href="#" tabindex="-1">Dropdown1</a><ul class="submenu-list"><li class='{"widget":"dropdown-header"}'>Page1</li>
+<li class='{"widget":"dropdown-header"}'>Page2</li></ul></li>
+<li class='{"widget":"dropdown-submenu"}'><a href="#" tabindex="-1">Dropdown2</a><ul class="submenu-override"><li class='{"widget":"dropdown-header"}'>Page3</li>
+<li class='{"widget":"dropdown-header"}'>Page4</li></ul></li></ul>'
/home/repos/yii2-bootstrap/tests/TestCase.php:81
/home/repos/yii2-bootstrap/tests/DropdownTest.php:88
/usr/bin/phpunit:29
6) yiiunit\extensions\bootstrap\NavTest::testIds
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<ul id="w0" class="nav"><li><a href="#">Page1</a></li>
-<li class="dropdown"><a class="dropdown-toggle" href="#" data-toggle="dropdown">Dropdown1 <span class="caret"></span></a><ul id="w1" class="dropdown-menu"><li class="dropdown-header">Page2</li>
-<li class="dropdown-header">Page3</li></ul></li></ul>'
+'<ul id="w0" class='{"widget":"nav"}'><li><a href="#">Page1</a></li>
+<li class='{"widget":"dropdown"}'><a class='{"widget":"dropdown-toggle"}' href="#" data-toggle="dropdown">Dropdown1 <span class="caret"></span></a><ul id="w1" class='{"widget":"dropdown-menu"}'><li class='{"widget":"dropdown-header"}'>Page2</li>
+<li class='{"widget":"dropdown-header"}'>Page3</li></ul></li></ul>'
/home/repos/yii2-bootstrap/tests/TestCase.php:81
/home/repos/yii2-bootstrap/tests/NavTest.php:71
/usr/bin/phpunit:29
7) yiiunit\extensions\bootstrap\NavTest::testEmptyItems
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<ul id="w0" class="nav"><li><a href="#">Page1</a></li>
-<li class="dropdown"><a class="dropdown-toggle" href="#" data-toggle="dropdown">Dropdown1 <span class="caret"></span></a><ul id="w1" class="dropdown-menu"><li class="dropdown-header">Page2</li>
-<li class="dropdown-header">Page3</li></ul></li>
+'<ul id="w0" class='{"widget":"nav"}'><li><a href="#">Page1</a></li>
+<li class='{"widget":"dropdown"}'><a class='{"widget":"dropdown-toggle"}' href="#" data-toggle="dropdown">Dropdown1 <span class="caret"></span></a><ul id="w1" class='{"widget":"dropdown-menu"}'><li class='{"widget":"dropdown-header"}'>Page2</li>
+<li class='{"widget":"dropdown-header"}'>Page3</li></ul></li>
<li><a href="#">Page4</a></li></ul>'
/home/repos/yii2-bootstrap/tests/TestCase.php:81
/home/repos/yii2-bootstrap/tests/NavTest.php:143
/usr/bin/phpunit:29
8) yiiunit\extensions\bootstrap\NavTest::testExplicitActive
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<ul id="w0" class="nav"><li class="active"><a href="#">Item1</a></li>
+'<ul id="w0" class='{"widget":"nav"}'><li class="active"><a href="#">Item1</a></li>
<li><a href="/base/index.php?r=site%2Findex">Item2</a></li></ul>'
/home/repos/yii2-bootstrap/tests/TestCase.php:81
/home/repos/yii2-bootstrap/tests/NavTest.php:173
/usr/bin/phpunit:29
9) yiiunit\extensions\bootstrap\NavTest::testImplicitActive
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<ul id="w0" class="nav"><li class="active"><a href="#">Item1</a></li>
+'<ul id="w0" class='{"widget":"nav"}'><li class="active"><a href="#">Item1</a></li>
<li class="active"><a href="/base/index.php?r=site%2Findex">Item2</a></li></ul>'
/home/repos/yii2-bootstrap/tests/TestCase.php:81
/home/repos/yii2-bootstrap/tests/NavTest.php:203
/usr/bin/phpunit:29
FAILURES!
Tests: 26, Assertions: 20, Errors: 9, Failures: 9, Skipped: 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment