Download the PHP package rapira/testing without Composer
On this page you can find all versions of the php package rapira/testing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package testing
[!IMPORTANT]
🪞 This is a read-only mirror.
Active development lives in rapira-rs/sdk-php under
packages/testing/. This repository is automatically synchronized from there on every release.File issues and pull requests in the main monorepo, not here.
About
Lets tests exercise a PHP application over a real socket instead of mocking the server: it downloads the rapira binary for a suite and starts a live rapira serve process around your test cases. The core is framework-neutral; a thin Testo adapter is shipped on top of it.
Install
The rapira binary is downloaded on demand via DLoad the first time a suite that needs it runs.
Usage with Testo
1. Provision the binary for a suite
Attach RunRapiraPlugin to the suite in testo.php. It downloads the rapira binary (once, if missing) and binds the application directory the server runs from.
2. Run the server around a test case
Annotate a test case with #[RunRapira]. Testo starts rapira serve before the case's tests and stops it afterwards.
RunRapira options:
| Option | Default | Description |
|---|---|---|
mode |
Mode::Worker |
Run mode passed as --mode (classic, worker, or dispatcher). |
worker |
'worker.php' |
Entrypoint script, absolute or relative to the working directory. |
address |
'127.0.0.1:8080' |
Listen address (host:port, :port, or unix:<path>). |
healthPath |
'/' |
Path polled for readiness; must answer 2xx once the app serves. |
readyTimeout |
5.0 |
Seconds to wait for the server to answer before failing. |
All versions of testing with dependencies
psr/log Version ^2.0 || ^3.0
internal/dload Version ^1.15
internal/path Version ^1.3
internal/toml Version ^1.1
rapira/contract Version ^0.9.1
testo/testo Version ^0.10.42