Crate phper_test
source ·Expand description
phper-test
Integration test tool for phper.
The php-config is needed. You can set environment PHP_CONFIG to specify the path.
Notice
-
Because the
phper-testdepends on thecdylibto do integration test, but nowcargo testdon’t buildcdylibin[lib], so you must callcargo buildbeforecargo test.Maybe, when the feature artifact-dependencies becomes stable, or the issue be solved, you don’t have to call
cargo buildin 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 setlto = true. It’s strange, but this is the only method to just runcargo testwithout runningcargo buildin advance. Please refer to tests/integration/Cargo.toml.
License
Modules
- Test tools for php cli program.
- Test tools for php fpm program.
- Utils for PHP test situation.