Development

Changeset 23483

You must first sign up to be able to contribute.

Changeset 23483

Show
Ignore:
Timestamp:
10/31/09 20:46:27 (4 years ago)
Author:
FabianLange
Message:

[routing_performance] suppressed lime 'ok' output to make the result more readable

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/routing_performance/routing_performance.php

    r23482 r23483  
    1111require_once dirname(__FILE__).'/'.$patch.'/sfPatternRoutingNew.class.php'; 
    1212 
    13 $t = new lime_test(null); 
     13class lime_output_filter_ok extends lime_output 
     14
     15  public function echoln($message, $colorizer_parameter = null, $colorize = true) 
     16  { 
     17    if (!preg_match('/(?:^|\.)(ok *\d*)\b/', $message)) 
     18    { 
     19      parent::echoln($message, $colorizer_parameter, $colorize); 
     20    } 
     21  } 
     22
     23 
     24$t = new lime_test(null, array('output' => new lime_output_filter_ok())); 
    1425 
    1526$t->diag(sprintf('testing patch %s with test harness $Revision$', $patch));