I tried to write a unittest related to #63, but I can't get all unittests passed even on fresh out of the box koseven.
`phpunit --bootstrap=modules/unittest/bootstrap.php modules/unittest/tests.php
PHPUnit 5.4.6 by Sebastian Bergmann and contributors.
............................................................. 61 / 1277 ( 4%)
..........................W...WWWWWWW.WWWWWWWWW.............. 122 / 1277 ( 9%)
............................................................. 183 / 1277 ( 14%)
............................................................. 244 / 1277 ( 19%)
............................................................. 305 / 1277 ( 23%)
...............SS..................E..EEEE.EEEE.EEEEEEEEEEE.. 366 / 1277 ( 28%)
....E........................................................ 427 / 1277 ( 33%)
............................................................. 488 / 1277 ( 38%)
............................................................. 549 / 1277 ( 42%)
............................................................. 610 / 1277 ( 47%)
...................W..WWWW............W............WW........ 671 / 1277 ( 52%)
........................EE................................... 732 / 1277 ( 57%)
............................................................. 793 / 1277 ( 62%)
............................................................. 854 / 1277 ( 66%)
............................................................. 915 / 1277 ( 71%)
............................................................. 976 / 1277 ( 76%)
............................................................. 1037 / 1277 ( 81%)
............................................................. 1098 / 1277 ( 85%)
............................................................. 1159 / 1277 ( 90%)
............................................................. 1220 / 1277 ( 95%)
....................................................WWWWW 1277 / 1277 (100%)
Time: 390 ms, Memory: 10.00Mb
There were 23 errors:
- Kohana_FeedTest::test_create with data set #0 (array(123, array('http://kohanaframework.org/image.png', 'http://kohanaframework.org/', 'title')), array(array('bar', 123, 'foo')), array(array('localhost', 'xim', '/var/lib/lightdm-data/nzpetter', '/org/freedesktop/DisplayManag...ssion0', 'xterm-256color', '/bin/bash', 'gnome-', '4402', 'gnome-keyring', '1', '54525958', 'unix:abstract=/com/ubuntu/ups...0/2014', 'gail:atk-bridge:unity-gtk-module', 'nzpetter', 'rs=0:di=01;34:ln=01;36:mh=00:...00;36:', '1', '/org/freedesktop/DisplayManag...ssion0', '/org/freedesktop/DisplayManager/Seat0', '/run/user/1000/keyring/ssh', '/usr/share/gconf/ubuntu.default.path', '/etc/xdg/xdg-ubuntu:/usr/shar...tc/xdg', '/home/nzpetter/bin:/home/nzpe...ap/bin', 'ubuntu', 'ibus', 'qgnomeplatform', 'x11', '/var/www/html', '@im=ibus', 'pl_PL.UTF-8', 'pl', '/usr/share/gconf/ubuntu.mandatory.path', '1', 'ubuntu', 'ubuntu', 'overlay-scrollbar', '/home/nzpetter', '2', 'pl', 'this-is-deprecated', 'ubuntu', 'nzpetter', '/usr/bin/', '/usr/share/ubuntu:/usr/local/...esktop', 'xim', 'unix:path=/run/user/1000/bus', '| /usr/bin/lesspipe %s', '1910', '8:26029', '/run/user/1000', ':0', 'Unity', 'ibus', '/usr/bin/lesspipe %s %s', '/home/nzpetter/.Xauthority', 'truecolor', '/usr/bin/phpunit', '/var/www', '/usr/bin/phpunit', '/usr/bin/phpunit', '/usr/bin/phpunit', '/usr/bin/phpunit', '', 1489176007.411359, 1489176007, array('/usr/bin/phpunit', '--bootstrap=modules/unittest/...ap.php', 'modules/unittest/tests.php'), 3)), array('channel', array('item', array('foo', 'bar'))), array(array('channel', array('image', array('link', 'http://kohanaframework.org/image.png'))), array('channel', array('image', array('url', 'http://kohanaframework.org/'))), array('channel', array('image', array('title', 'title')))))
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FeedTest.php:133
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_open with data set #0 (array('', null), array(''))
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:83
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_open with data set #1 (array(null, null), array(''))
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:83
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_open with data set #2 (array('foo', null), array('/foo'))
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:83
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_open with data set #3 (array('foo', array('get')), array('/foo', 'get'))
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:83
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_input with data set #0 ('input', 'foo', 'bar', null, 'input')
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:147
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_input with data set #1 ('input', 'foo', null, null, 'input')
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:147
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_input with data set #2 ('hidden', 'foo', 'bar', null, 'hidden')
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:147
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_input with data set #3 ('password', 'foo', 'bar', null, 'password')
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:147
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_check with data set #0 ('checkbox', 'foo', null, false, null)
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:223
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_check with data set #1 ('checkbox', 'foo', null, true, null)
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:223
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_check with data set #2 ('checkbox', 'foo', 'bar', true, null)
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:223
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_check with data set #3 ('radio', 'foo', null, false, null)
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:223
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_check with data set #4 ('radio', 'foo', null, true, null)
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:223
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_check with data set #5 ('radio', 'foo', 'bar', true, null)
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:223
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_text with data set #0 ('textarea', 'foo', 'bar', null)
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:276
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_text with data set #1 ('textarea', 'foo', 'bar', array(20, 20))
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:276
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_text with data set #2 ('button', 'foo', 'bar', null)
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:276
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_text with data set #3 ('label', 'foo', 'bar', null)
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:276
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_text with data set #4 ('label', 'foo', null, null)
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:276
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_FormTest::test_submit with data set #0 ('foo', 'Foobar!', '')
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:119
/var/www/html/system/tests/kohana/FormTest.php:341
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_TextTest::test_auto_para_does_not_enclose_html_tags_in_paragraphs with data set #0 (array('div'), '
Pick a plum of peppers
')
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:147
/var/www/html/system/tests/kohana/TextTest.php:73
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
- Kohana_TextTest::test_auto_para_does_not_enclose_html_tags_in_paragraphs with data set #1 (array('div'), '
Tangas
')
Error: Call to undefined method PHPUnit_Util_XML::findNodes()
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:167
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestCase.php:147
/var/www/html/system/tests/kohana/TextTest.php:73
/var/www/html/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
--
`
What am I doing wrong?