Index: review/assertion/pifr_assertion.server.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue_file_review/review/assertion/pifr_assertion.server.inc,v
retrieving revision 1.23
diff -u -r1.23 pifr_assertion.server.inc
--- review/assertion/pifr_assertion.server.inc	16 Dec 2009 23:11:33 -0000	1.23
+++ review/assertion/pifr_assertion.server.inc	17 Dec 2009 02:05:23 -0000
@@ -14,12 +14,30 @@
 abstract class pifr_server_review_pifr_assertion extends pifr_server_review {
 
   /**
+   * Labels to be displayed to user.
+   *
+   * @var array
+   */
+  protected $labels = array(
+    'pass' => 'pass',
+    'fail' => 'fail',
+    'exception' => 'exception',
+  );
+
+  /**
+   * Standard detail message.
+   *
+   * @var string
+   */
+  protected $detail_message = '@pass pass(es), @fail fail(s), and @exception exception(es)';
+
+  /**
    * Modify step information.
    */
   public function __construct() {
     $this->steps['fail'] = array_merge($this->steps['fail'], array(
       'description' => 'Review the test failures below then if necessary run them locally until the problem has been fixed.',
-      'summary' => 'Failed on @environment, with: @pass pass(es), @fail fail(s), and @exception exception(es).',
+      'summary' => 'Failed on @environment, with: ' . $this->detail_message . '.',
     ));
     $this->steps['pass'] = array_merge($this->steps['pass'], array(
       'summary' => 'Passed on @environment, with: @pass pass(es).',
@@ -68,7 +86,11 @@
     drupal_add_js(array('pifr_assertion' => $js), 'setting');
 
     // Build list of test summaries.
-    $header = array(t('Test name'), t('Pass'), t('Fail'), t('Exception'));
+    $header = array(t('Test name'));
+    foreach ($this->labels as $label) {
+      $header[] = t(ucfirst($label));
+    }
+
     $rows = array();
     $rows_fail = array();
     foreach ($result['data'] as $detail) {
@@ -137,7 +159,7 @@
     if (isset($result['details']['@fail'])) {
       $pass = $result['details']['@fail'] + $result['details']['@exception'] == 0;
       $details = $this->summary_format($result['details']);
-      $summary = t('@pass pass(es), @fail fail(s), and @exception exception(s)', $details);
+      $summary = t($this->detail_message, $details);
       $summary = '<div class="pifr-assertion-summary pifr-' . ($pass ? 'ok' : 'error') . '">' . $summary . '</div>';
     }
 
@@ -164,7 +186,7 @@
           '@fail' => $detail['fail'],
           '@exception' => $detail['exception'],
         );
-        $details = t('@pass pass(es), @fail fail(s), and @exception exception(s)', $details);
+        $details = t($this->detail_message, $details);
         $failed_tests[] = $detail['test_name'] . ' (' . $details . ')';
       }
     }
