classes/phing/tasks/ext/coverage/CoverageReportTask.php
protected function addClassToSubpackage($classname, $element)
    {
        $subpackageName = PHPUnitUtil::getSubpackageName($classname);

        $subpackage = $this->getSubpackageElement($subpackageName);

        if ($subpackage === null) {
            $subpackage = $this->doc->createElement('subpackage');
            $subpackage->setAttribute('name', $subpackageName);
            $this->doc->documentElement->appendChild($subpackage);
        }

        $subpackage->appendChild($element);
    }
protected function addClassToSubpackage($classname, $element)
    {
        $subpackageName = PHPUnitUtil::getSubpackageName($classname);

        $subpackage = $this->getSubpackageElement($subpackageName);

        if ($subpackage === null) {
            $subpackage = $this->doc->createElement('subpackage');
            $subpackage->setAttribute('name', $subpackageName);
            $this->doc->documentElement->appendChild($subpackage);
        }

        $subpackage->appendChild($element);
    }
protected function addClassToSubpackage ( $ classname , $ element ) { $ subpackageName = PHPUnitUtil :: getSubpackageName ( $ classname ) ; $ subpackage = $ this -> getSubpackageElement ( $ subpackageName ) ; if ( $ subpackage === null ) { $ subpackage = $ this -> doc -> createElement ( 'subpackage' ) ; $ subpackage -> setAttribute ( 'name' , $ subpackageName ) ; $ this -> doc -> documentElement -> appendChild ( $ subpackage ) ; } $ subpackage -> appendChild ( $ element ) ; }
Adds a class to their subpackage

@param string $classname The name of the class
@param DOMNode $element The dom node to append to the subpackage element

@author Benjamin Schultz <bschultz@proqrent.de>
@return void
Adds a class to their subpackage