Skip to content

Commit

Permalink
Move the XFAILED printout way up the list so we can actually notice t…
Browse files Browse the repository at this point in the history
…he really failing ones
  • Loading branch information
bjori committed Sep 1, 2011
1 parent 1f8c94b commit 958326c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions run-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -2305,6 +2305,18 @@ function get_summary($show_ext_summary, $show_html)
';
$failed_test_summary = '';

if (count($PHP_FAILED_TESTS['XFAILED'])) {
$failed_test_summary .= '
=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
';
foreach ($PHP_FAILED_TESTS['XFAILED'] as $failed_test_data) {
$failed_test_summary .= $failed_test_data['test_name'] . $failed_test_data['info'] . "\n";
}
$failed_test_summary .= "=====================================================================\n";
}

if (count($PHP_FAILED_TESTS['BORKED'])) {
$failed_test_summary .= '
=====================================================================
Expand All @@ -2329,18 +2341,6 @@ function get_summary($show_ext_summary, $show_html)
}
$failed_test_summary .= "=====================================================================\n";
}
if (count($PHP_FAILED_TESTS['XFAILED'])) {
$failed_test_summary .= '
=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
';
foreach ($PHP_FAILED_TESTS['XFAILED'] as $failed_test_data) {
$failed_test_summary .= $failed_test_data['test_name'] . $failed_test_data['info'] . "\n";
}
$failed_test_summary .= "=====================================================================\n";
}

if (count($PHP_FAILED_TESTS['WARNED'])) {
$failed_test_summary .= '
=====================================================================
Expand Down

0 comments on commit 958326c

Please sign in to comment.