Author: bschussek
Date: 2010-05-04 07:55:18 +0200 (Tue, 04 May 2010)
New Revision: 29344

Modified:
   tools/lime/trunk/lib/lime.php
Log:
[lime] fixed: Changed call to non-existing method strip_base_dir()

Modified: tools/lime/trunk/lib/lime.php
===================================================================
--- tools/lime/trunk/lib/lime.php       2010-05-04 00:39:58 UTC (rev 29343)
+++ tools/lime/trunk/lib/lime.php       2010-05-04 05:55:18 UTC (rev 29344)
@@ -295,7 +295,7 @@
     // under some unknown conditions the sprintf() call causes a segmentation 
fault
     // when placed directly in the eval() call
     eval($php);
-    
+
     if (!$this->ok($result, $message))
     {
       $this->set_last_test_errors(array(sprintf("      %s", str_replace("\n", 
'', var_export($exp1, true))), sprintf("          %s", $op), sprintf("      
%s", str_replace("\n", '', var_export($exp2, true)))));
@@ -888,7 +888,7 @@
       $this->stats['files'][$file] = array();
       $stats = &$this->stats['files'][$file];
 
-      $relative_file = $this->strip_base_dir($file);
+      $relative_file = $this->get_relative_file($file);
 
       $test_file = tempnam(sys_get_temp_dir(), 'lime');
       $result_file = tempnam(sys_get_temp_dir(), 'lime');
@@ -1005,7 +1005,7 @@
         {
           continue;
         }
-        $relative_file = $this->strip_base_dir($file);
+        $relative_file = $this->get_relative_file($file);
 
         if (isset($stat['output'][0]))
         {
@@ -1041,11 +1041,11 @@
             if ($first)
             {
               $this->output->echoln('');
-              
$this->output->error($this->strip_base_dir($testsuite['file']).$this->extension);
+              
$this->output->error($this->get_relative_file($testsuite['file']).$this->extension);
               $first = false;
             }
 
-            $this->output->comment(sprintf('  at %s line %s', 
$this->strip_base_dir($testsuite['tests'][$testcase]['file']).$this->extension, 
$testsuite['tests'][$testcase]['line']));
+            $this->output->comment(sprintf('  at %s line %s', 
$this->get_relative_file($testsuite['tests'][$testcase]['file']).$this->extension,
 $testsuite['tests'][$testcase]['line']));
             $this->output->info('  
'.$testsuite['tests'][$testcase]['message']);
             $this->output->echoln($testsuite['tests'][$testcase]['error'], 
null, false);
           }
@@ -1219,7 +1219,7 @@
       $total_php_lines += $total_lines;
       $total_covered_lines += count($covered_lines);
 
-      $relative_file = $this->strip_base_dir($file);
+      $relative_file = $this->get_relative_file($file);
       $output->echoln(sprintf("%-70s %3.0f%%", substr($relative_file, -min(70, 
strlen($relative_file))), $percent), $percent == 100 ? 'INFO' : ($percent > 90 
? 'PARAMETER' : ($percent < 20 ? 'ERROR' : '')));
       if ($this->verbose && $is_covered && $percent != 100)
       {

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to