FuelPHP Bin
php unit error
Tests Running...This may take a few moments. PHPUnit 3.7.21 by Sebastian Bergmann. Configuration read from C:\xampp\htdocs\fuel2\fuel\core\phpunit.xml EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE........................... 63 / 358 ( 17%) ............................................................... 126 / 358 ( 35%) ......FFF............F......................................... 189 / 358 ( 52%) ............................................................... 252 / 358 ( 70%) ............................................................... 315 / 358 ( 87%) ........................................... Time: 0 seconds, Memory: 13.75Mb There were 36 errors: 1) Fuel\Core\Test_Agent::test_browser Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\classes\autoloader.php:364 C:\xampp\htdocs\fuel2\fuel\core\classes\autoloader.php:247 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 2) Fuel\Core\Test_Agent::test_platform Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 3) Fuel\Core\Test_Agent::test_version Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 4) Fuel\Core\Test_Agent::test_property with data set #0 ('Browser', 'Firefox') Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 5) Fuel\Core\Test_Agent::test_property with data set #1 ('Version', 3.600000000000000088817841970012523233890533447265625) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 6) Fuel\Core\Test_Agent::test_property with data set #2 ('MajorVer', 3) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 7) Fuel\Core\Test_Agent::test_property with data set #3 ('MinorVer', 6) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 8) Fuel\Core\Test_Agent::test_property with data set #4 ('Platform', 'Linux') Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 9) Fuel\Core\Test_Agent::test_property with data set #5 ('Alpha', false) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 10) Fuel\Core\Test_Agent::test_property with data set #6 ('Beta', false) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 11) Fuel\Core\Test_Agent::test_property with data set #7 ('Win16', false) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 12) Fuel\Core\Test_Agent::test_property with data set #8 ('Win32', false) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 13) Fuel\Core\Test_Agent::test_property with data set #9 ('Win64', false) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 14) Fuel\Core\Test_Agent::test_property with data set #10 ('Frames', true) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 15) Fuel\Core\Test_Agent::test_property with data set #11 ('IFrames', true) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 16) Fuel\Core\Test_Agent::test_property with data set #12 ('Tables', true) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 17) Fuel\Core\Test_Agent::test_property with data set #13 ('Cookies', true) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 18) Fuel\Core\Test_Agent::test_property with data set #14 ('BackgroundSounds', false) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 19) Fuel\Core\Test_Agent::test_property with data set #15 ('JavaScript', true) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 20) Fuel\Core\Test_Agent::test_property with data set #16 ('VBScript', false) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 21) Fuel\Core\Test_Agent::test_property with data set #17 ('JavaApplets', true) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 22) Fuel\Core\Test_Agent::test_property with data set #18 ('ActiveXControls', false) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 23) Fuel\Core\Test_Agent::test_property with data set #19 ('isBanned', false) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 24) Fuel\Core\Test_Agent::test_property with data set #20 ('isMobile', false) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 25) Fuel\Core\Test_Agent::test_property with data set #21 ('isSyndicationReader', false) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 26) Fuel\Core\Test_Agent::test_property with data set #22 ('Crawler', false) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 27) Fuel\Core\Test_Agent::test_property with data set #23 ('CssVersion', 3) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 28) Fuel\Core\Test_Agent::test_property with data set #24 ('AolVersion', 0) Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 29) Fuel\Core\Test_Agent::test_is_robot Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 30) Fuel\Core\Test_Agent::test_is_mobiledevice Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 31) Fuel\Core\Test_Agent::test_languages Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 32) Fuel\Core\Test_Agent::test_accepts_language_success Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 33) Fuel\Core\Test_Agent::test_accepts_language_fail Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 34) Fuel\Core\Test_Agent::test_charsets Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 35) Fuel\Core\Test_Agent::test_accepts_charset_success Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 36) Fuel\Core\Test_Agent::test_accepts_charset_fail Fuel\Core\PhpErrorException: get_browser(): HTTP_USER_AGENT variable is not set, cannot determine user agent name C:\xampp\htdocs\fuel2\fuel\core\bootstrap.php:98 C:\xampp\htdocs\fuel2\fuel\core\classes\agent.php:196 C:\xampp\htdocs\fuel2\fuel\core\tests\agent.php:36 -- There were 4 failures: 1) Fuel\Core\Test_Debug::test_debug_dump_normally Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ ' <script type="text/javascript">function fuel_debug_toggle(a){if(document.getElementById){if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display="block"}else{document.getElementById(a).style.display="none"}}else{if(document.layers){if(document.id.display=="none"){document.id.display="block"}else{document.id.display="none"}}else{if(document.all.id.style.display=="none"){document.all.id.style.display="block"}else{document.all.id.style.display="none"}}}};</script><div class="fuelphp-dump" style="font-size: 13px;background: #EEE !important; border:1px solid #666; color: #000 !important; padding:10px;"><h1 style="border-bottom: 1px solid #CCC; padding: 0 0 5px 0; margin: 0 0 5px 0; font: bold 120% sans-serif;">COREPATH/tests/debug.php @ line: 31</h1><pre style="overflow:auto;font-size:100%;"><strong>Variable #1:</strong> <i></i> <strong></strong> (Integer): 1 <strong>Variable #2:</strong> <i></i> <strong></strong> (Integer): 2 <strong>Variable #3:</strong> <i></i> <strong></strong> (Integer): 3 </pre></div>' C:\xampp\htdocs\fuel2\fuel\core\tests\debug.php:35 2) Fuel\Core\Test_Debug::test_debug_dump_by_call_user_func_array Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ '<div class="fuelphp-dump" style="font-size: 13px;background: #EEE !important; border:1px solid #666; color: #000 !important; padding:10px;"><h1 style="border-bottom: 1px solid #CCC; padding: 0 0 5px 0; margin: 0 0 5px 0; font: bold 120% sans-serif;">COREPATH/tests/debug.php @ line: 46</h1><pre style="overflow:auto;font-size:100%;"><strong>Variable #1:</strong> <i></i> <strong></strong> (Integer): 1 <strong>Variable #2:</strong> <i></i> <strong></strong> (Integer): 2 <strong>Variable #3:</strong> <i></i> <strong></strong> (Integer): 3 </pre></div>' C:\xampp\htdocs\fuel2\fuel\core\tests\debug.php:50 3) Fuel\Core\Test_Debug::test_debug_dump_by_call_fuel_func_array Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ '<div class="fuelphp-dump" style="font-size: 13px;background: #EEE !important; border:1px solid #666; color: #000 !important; padding:10px;"><h1 style="border-bottom: 1px solid #CCC; padding: 0 0 5px 0; margin: 0 0 5px 0; font: bold 120% sans-serif;">COREPATH/base.php @ line: 462</h1><pre style="overflow:auto;font-size:100%;"><strong>Variable #1:</strong> <i></i> <strong></strong> (Integer): 1 <strong>Variable #2:</strong> <i></i> <strong></strong> (Integer): 2 <strong>Variable #3:</strong> <i></i> <strong></strong> (Integer): 3 </pre></div>' C:\xampp\htdocs\fuel2\fuel\core\tests\debug.php:65 4) Fuel\Core\Test_Fieldset::test_for_in_label Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'<form action="welcome/index" accept-charset="utf-8" method="post"><table><tr><td class=""></td><td class=""><input type="radio" value="0" id="form_gender_0" name="gender" /> <label for="form_gender_0">male</label><br /><input type="radio" value="1" id="form_gender_1" name="gender" checked="checked" /> <label for="form_gender_1">female</label><br /><span></span></td></tr></table></form>' +'<form action="index.php/welcome/index" accept-charset="utf-8" method="post"> +<table><tr><td class=""></td><td class=""><input type="radio" value="0" id="form_gender_0" name="gender" /> <label for="form_gender_0">male</label><br /><input type="radio" value="1" id="form_gender_1" name="gender" checked="checked" /> <label for="form_gender_1">female</label><br /><span></span></td></tr> +</table></form> +' C:\xampp\htdocs\fuel2\fuel\core\tests\fieldset.php:91 FAILURES! Tests: 358, Assertions: 373, Failures: 4, Errors: 36.