diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-12 02:05:03 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-12 02:05:03 +0900 |
| commit | ed8694f89eb7702eb7e617af29f8f444f32b8d3c (patch) | |
| tree | eb140dc918445f325c92618cfabb8094b53ccd55 /Cargo.lock | |
| parent | 3e2613f70ebdb441269556d1080a69a1f21a4f7d (diff) | |
| download | php-shirabe-ed8694f89eb7702eb7e617af29f8f444f32b8d3c.tar.gz php-shirabe-ed8694f89eb7702eb7e617af29f8f444f32b8d3c.tar.zst php-shirabe-ed8694f89eb7702eb7e617af29f8f444f32b8d3c.zip | |
test(installed-versions): verify the PHP class the worker loads
InstalledVersions has no Rust port, so the skeletons left behind asserted
nothing about compatibility. The tests now require the Composer checkout's
vendor/autoload.php into the PHP worker and drive the real class there, which
puts $selfDir, the registered ClassLoader and Composer\Semver\VersionParser in
the same state as the upstream PHPUnit run. The upstream setUp reflection and
the installed_relative.php require stay in PHP; the expected values are Rust.
The class Composer's own vendor directory autoloads and the one
FilesystemRepository::write dumps from include_str! are separate files, so an
added test asserts they hold the same bytes.
FilesystemRepositoryTest::testSafelyLoadInstalledVersions moves to the worker
too, against the php/stubs FilesystemRepository, whose safelyLoadInstalledVersions
runs the PCRE recursive grammar natively.
The shared worker helpers live in tests/common/php_worker.rs.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'Cargo.lock')
0 files changed, 0 insertions, 0 deletions
