#php #binding

phper-test

PHPer testing utilities

19 releases (8 breaking)

0.10.2 Jan 12, 2023
0.9.0 Dec 18, 2022
0.6.0 Nov 29, 2022
0.4.0-alpha.3 Jul 1, 2022
0.2.0 Jun 5, 2021

#177 in Testing

Download history 24/week @ 2022-11-24 30/week @ 2022-12-01 26/week @ 2022-12-08 25/week @ 2022-12-15 23/week @ 2022-12-22 49/week @ 2023-01-05 37/week @ 2023-01-12 3/week @ 2023-01-19 5/week @ 2023-01-26 6/week @ 2023-02-02 53/week @ 2023-02-09 33/week @ 2023-02-16 1/week @ 2023-02-23 38/week @ 2023-03-09

83 downloads per month

MulanPSL-2.0

21KB
403 lines

phper-test

Integration test tool for phper.

The php-config is needed. You can set environment PHP_CONFIG to specify the path.

Notice

  1. 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.

  2. 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.

License

MulanPSL-2.0.

Dependencies

~0.8–6.5MB
~115K SLoC