Appearance
PhpunitPaths
php
final class Zairakai\LaravelDevTools\Services\PhpunitPathsThe paths of a phpunit.xml, found by the names of the PHPUnit schema.
- The attributes that hold a path: bootstrap, cacheDirectory, extensionsDirectory, outputDirectory, outputFile, baseline, testSuiteLoaderFile and xsi:noNamespaceSchemaLocation (the schema that the editor reads).
- The elements that hold a path as text: directory, file, includePath, and exclude when it holds text (an exclude with directory and file inside is left to them).
A stream (php://stdout), an absolute path and a drive (C:\) are not paths of the project. A comment and a CDATA section are left as they are, and so is the layout of the file: the DOM would write the root element on one line, and the file is edited by the project.
Source: src/Services/PhpunitPaths.php
Methods
convert()
php
public static function convert(string $xml, callable $convert): stringApplies $convert to every path of the file.