()
| 84 | } |
| 85 | |
| 86 | pub async fn setup() -> Fixture { |
| 87 | setup_logging(); |
| 88 | info!( |
| 89 | TARGET = TARGET, |
| 90 | EXT = EXT, |
| 91 | ENABLE_ZEND_OBSERVER = &*ENABLE_ZEND_OBSERVER, |
| 92 | "setup fixture" |
| 93 | ); |
| 94 | |
| 95 | Fixture { |
| 96 | http_server_1_handle: tokio::spawn(setup_http_proxy_server( |
| 97 | PROXY_SERVER_1_ADDRESS, |
| 98 | FPM_SERVER_1_ADDRESS, |
| 99 | )), |
| 100 | http_server_2_handle: tokio::spawn(setup_http_proxy_server( |
| 101 | PROXY_SERVER_2_ADDRESS, |
| 102 | FPM_SERVER_2_ADDRESS, |
| 103 | )), |
| 104 | php_fpm_1_child: setup_php_fpm(1, FPM_SERVER_1_ADDRESS), |
| 105 | php_fpm_2_child: setup_php_fpm(2, FPM_SERVER_2_ADDRESS), |
| 106 | php_swoole_1_child: setup_php_swoole(1), |
| 107 | php_swoole_2_child: setup_php_swoole(2), |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | pub async fn teardown(fixture: Fixture) { |
| 112 | fixture.http_server_1_handle.abort(); |
no test coverage detected