lastdragon-ru/phpunit-xml
Tools for working with PHPUnit’s XML configuration: parse, build, and validate phpunit.xml files programmatically. Useful for CI automation, config generation, and upgrades/migrations between PHPUnit versions, with a focused API designed for PHP projects.
PHPUnit XML / XML Schema assertions.
| Requirement | Constraint | Supported by |
|---|---|---|
| PHP | ^8.5 |
HEAD ⋯ 11.0.0 |
^8.4 |
HEAD ⋯ 10.0.0 |
|
^8.3 |
10.3.0 ⋯ 10.0.0 |
|
| PHPUnit | ^13.0.0 |
HEAD ⋯ 11.0.0 |
^12.0.0 |
10.3.0 ⋯ 10.0.0 |
|
^11.3.0 |
10.3.0 ⋯ 10.1.0 |
|
^11.2.0 |
10.0.0 |
[!NOTE]
The package intended to use in dev.
composer require --dev lastdragon-ru/phpunit-xml
<?php declare(strict_types = 1);
namespace LastDragon_ru\PhpUnit\Xml\Docs\Examples;
use LastDragon_ru\PhpUnit\Xml\Assertions;
use PHPUnit\Framework\TestCase;
/**
* @internal
*/
abstract class Usage extends TestCase {
use Assertions;
}
Assertions::assertXmlMatchesSchema() - Asserts that XML matches schema.Please use the main repository to report issues, send pull requests, or ask questions.
How can I help you explore Laravel packages today?