PEAR2_Pyrus_DeveloperPEAR2_Pyrus_Developer-0.4.0/php/PEAR2/Pyrus/Developer/CoverageAnalyzer/Web/ClassToTemplateMapper.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
namespace PEAR2\Pyrus\Developer\CoverageAnalyzer\Web;
class ClassToTemplateMapper extends \PEAR2\Templates\Savant\ClassToTemplateMapper
{

    function map($class)
    {
        if ($class == 'PEAR2\Pyrus\Developer\CoverageAnalyzer\SourceFile\PerTest') {
            return 'SourceFile.tpl.php';
        }
        $class = str_replace(array('PEAR2\Pyrus\Developer\CoverageAnalyzer\Web', 'PEAR2\Pyrus\Developer\CoverageAnalyzer'), '', $class);
        return parent::map($class);
    }
}
EOF