Skip to main content

run_fixture

Function run_fixture 

Source
pub fn run_fixture(path: &str)
Expand description

Run a .phpt fixture file: parse, analyze, and assert the issues match the ===expect=== section exactly (no missing, no unexpected).

If the environment variable UPDATE_FIXTURES is set to 1, the fixture file is rewritten with the actual issues instead of asserting.

Called by the auto-generated test functions in build.rs.