Skip to content

PhpunitPaths ​

php
final class Zairakai\LaravelDevTools\Services\PhpunitPaths

The 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): string

Applies $convert to every path of the file.

Documentation of 5.5.0 , built from 92a7387 on 5.5.0 by pipeline #3086393151 on 2026-11-18.