Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
/*
4
 * This file is part of the symfony package.
5
 * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
 
11
class lime_symfony extends lime_harness
12
{
13
  protected function get_relative_file($file)
14
  {
15
    $file = str_replace(DIRECTORY_SEPARATOR, '/', str_replace(array(
16
      realpath($this->base_dir).DIRECTORY_SEPARATOR,
17
      realpath($this->base_dir.'/../lib/plugins').DIRECTORY_SEPARATOR,
18
      $this->extension,
19
    ), '', $file));
20
 
21
    return preg_replace('#^(.*?)Plugin/test/(unit|functional)/#', '[$1] $2/', $file);
22
  }
23
}