Description
I run tests and got this error:
Notice: Undefined index: _SERVER in /usr/share/pear/PHPUnit/Util/Filter.php on line 69
Full output dump:
phpunit --bootstrap=modules/unittest/bootstrap.php modules/unittest/tests.php
PHPUnit 3.7.8 by Sebastian Bergmann.
.............................S..........SSSSSSSSSSSSSSSSSSSSS 61 / 1299 ( 4%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 122 / 1299 ( 9%)
SSSS......................................................... 183 / 1299 ( 14%)
............................................................. 244 / 1299 ( 18%)
.SSSSSS............SS........................................ 305 / 1299 ( 23%)
............................................................. 366 / 1299 ( 28%)
..............................................F.............S 427 / 1299 ( 32%)
.SS.......................................................... 488 / 1299 ( 37%)
............................................................. 549 / 1299 ( 42%)
............................................................. 610 / 1299 ( 46%)
............................................................. 671 / 1299 ( 51%)
.........................S.................................SS 732 / 1299 ( 56%)
SSS..I....................................................... 793 / 1299 ( 61%)
............................................................. 854 / 1299 ( 65%)
.....................................F....................... 915 / 1299 ( 70%)
............................................................. 976 / 1299 ( 75%)
............................................................. 1037 / 1299 ( 79%)
............................................................. 1098 / 1299 ( 84%)
............................................................. 1159 / 1299 ( 89%)
............................................................. 1220 / 1299 ( 93%)
............................................................. 1281 / 1299 ( 98%)
..................
Time: 34 seconds, Memory: 22.50Mb
There were 2 failures:
- Kohana_DebugTest::test_dump with data set junit xml log for phpt tests does not appear to work #6 ('foo▒' . "\0" . 'bar▒±10', 128, 10, 'string(10) "foobar±10"')
Notice: Undefined index: _SERVER in /usr/share/pear/PHPUnit/Util/Filter.php on line 69
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'string(10) "foobar±10"'
+'string(0) ""'
/mnt/hgfs/ipnew/system/tests/kohana/DebugTest.php:124
/mnt/hgfs/ipnew/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
/usr/bin/phpunit:46
- Kohana_UTF8Test::test_clean with data set Mocking class Imagick of pecl/imagick 3.0.0 fails with PHPUnit 3.4.2 and 3.5 beta1 #3 ('▒', '')
Notice: Undefined index: _SERVER in /usr/share/pear/PHPUnit/Util/Filter.php on line 69
Failed asserting that false is identical to ''.
/mnt/hgfs/ipnew/system/tests/kohana/UTF8Test.php:41
/mnt/hgfs/ipnew/modules/unittest/classes/Kohana/Unittest/TestSuite.php:51
/usr/bin/phpunit:46
FAILURES!
Tests: 1299, Assertions: 2749, Failures: 2, Incomplete: 1, Skipped: 104.