Skip to content

Instantly share code, notes, and snippets.

@avdg
Created June 7, 2011 10:50
Show Gist options
  • Save avdg/1012027 to your computer and use it in GitHub Desktop.
Save avdg/1012027 to your computer and use it in GitHub Desktop.
phpunit --coverage-html ./phpunitCache/ Request/
<html>
<head>
<style type="text/css">
body {
font-family: monospace;
background-color: #F6FFE9;
}
#code_error td.title {
font-weight: bold;
}
</style>
<title>PHP code error</title>
<body>
<table style="height: 100%; width: 100%;">
<tr><td valign="middle" style="width: 100%;">
<div id="content" style="border: 1px solid #C4C4C4; padding: 15px; background-color: white; position: relative;">
<h1 style="margin-top: 0;">Exception</h1> <table id="code_error">
<tr>
<td class="title">File: </td>
<td>/Users/anthonyvandegejuchte/Documents/source/ppi-framework/ppi-framework/Test/init.php</td>
</tr>
<!--
<tr>
<td class="title">errno: </td>
<td>2</td>
</tr>
-->
<tr>
<td class="title">line: </td>
<td>8</td>
</tr>
<tr>
<td class="title">message: </td>
<td>create_function() expects exactly 2 parameters, 1 given</td>
</tr>
<tr>
</tr>
</table>
<h3>Backtrace</h3>#0 [internal function]: ppi_error_handler(2, 'create_function...', '/Users/anthonyv...', 8, Array)<br />
#1 /Users/anthonyvandegejuchte/Documents/source/ppi-framework/ppi-framework/Test/init.php(8): create_function('return null;')<br />
#2 /usr/lib/php/PHPUnit/Util/Fileloader.php(102): include_once('/Users/anthonyv...')<br />
#3 /usr/lib/php/PHPUnit/Util/Fileloader.php(86): PHPUnit_Util_Fileloader::load('/Users/anthonyv...')<br />
#4 /usr/lib/php/PHPUnit/TextUI/Command.php(789): PHPUnit_Util_Fileloader::checkAndLoad('/Users/anthonyv...', false)<br />
#5 /usr/lib/php/PHPUnit/TextUI/Command.php(653): PHPUnit_TextUI_Command->handleBootstrap('/Users/anthonyv...', false)<br />
#6 /usr/lib/php/PHPUnit/TextUI/Command.php(138): PHPUnit_TextUI_Command->handleArguments(Array)<br />
#7 /usr/lib/php/PHPUnit/TextUI/Command.php(129): PHPUnit_TextUI_Command->run(Array, true)<br />
#8 /usr/bin/phpunit(53): PHPUnit_TextUI_Command::main()<br />
#9 {main}<br><br> </div>
</td></tr></table> <!-- end of wrapper table -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment