| Crates.io | phper-test |
| lib.rs | phper-test |
| version | 0.16.0 |
| created_at | 2021-04-18 14:42:10.968085+00 |
| updated_at | 2025-07-03 03:39:34.348302+00 |
| description | PHPer testing utilities. |
| homepage | |
| repository | https://github.com/phper-framework/phper |
| max_upload_size | |
| id | 386176 |
| size | 78,460 |
Integration test tool for phper.
The php-config is needed. You can set environment PHP_CONFIG to specify the path.
Because the phper-test depends on the cdylib to do integration test, but now cargo test don't build cdylib in [lib], so you must call cargo build before cargo test.
Maybe, when the feature artifact-dependencies becomes stable, or the issue be solved, you don't have to call cargo build in advance, but I think it will be a long long stage.
Or, define an [[example]] section, re-export all the symbols of your crate, and set lto = true. It's strange, but this is the only method to just run cargo test without running cargo build in advance. Please refer to tests/integration/Cargo.toml.