Development

Changeset 5319

You must first sign up to be able to contribute.

Changeset 5319

Show
Ignore:
Timestamp:
09/30/07 13:52:46 (2 years ago)
Author:
fabien
Message:

modified prove output for internal plugins

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/test/bin/prove.php

    r5231 r5319  
    1111require_once(dirname(__FILE__).'/../../lib/vendor/lime/lime.php'); 
    1212 
    13 $h = new lime_harness(new lime_output_color()); 
     13class lime_symfony extends lime_harness 
     14
     15  protected function get_relative_file($file) 
     16  { 
     17    $file = str_replace(DIRECTORY_SEPARATOR, '/', str_replace(array( 
     18      realpath($this->base_dir).DIRECTORY_SEPARATOR, 
     19      realpath($this->base_dir.'/../lib/plugins').DIRECTORY_SEPARATOR, 
     20      $this->extension, 
     21    ), '', $file)); 
     22 
     23    return preg_replace('#^(.*?)Plugin/test/(unit|functional)/#', '[$1] $2/', $file); 
     24  } 
     25
     26 
     27$h = new lime_symfony(new lime_output_color()); 
    1428 
    1529$h->base_dir = realpath(dirname(__FILE__).'/..'); 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.