class RemoveCoverageElementCacheDirectoryAttribute
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
@internal This class is not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\TextUI\XmlConfiguration\RemoveCoverageElementCacheDirectoryAttribute implements \PHPUnit\TextUI\XmlConfiguration\Migration
Expanded class hierarchy of RemoveCoverageElementCacheDirectoryAttribute
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Configuration/ Xml/ Migration/ Migrations/ RemoveCoverageElementCacheDirectoryAttribute.php, line 20
Namespace
PHPUnit\TextUI\XmlConfigurationView source
final class RemoveCoverageElementCacheDirectoryAttribute implements Migration {
public function migrate(DOMDocument $document) : void {
$node = $document->getElementsByTagName('coverage')
->item(0);
if (!$node instanceof DOMElement || $node->parentNode === null) {
return;
}
if ($node->hasAttribute('cacheDirectory')) {
$node->removeAttribute('cacheDirectory');
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
RemoveCoverageElementCacheDirectoryAttribute::migrate | public | function | Overrides Migration::migrate |