()
| 2168 | |
| 2169 | #[test] |
| 2170 | fn parses_reference_param() { |
| 2171 | let text = "function test(array &$data): void {}"; |
| 2172 | let info = parse_declaration_info(text); |
| 2173 | assert_eq!(info.params.len(), 1); |
| 2174 | assert_eq!( |
| 2175 | info.params[0], |
| 2176 | (Some(PhpType::parse("array")), "$data".to_string()) |
| 2177 | ); |
| 2178 | } |
| 2179 | |
| 2180 | #[test] |
| 2181 | fn parses_param_with_default() { |
nothing calls this directly
no test coverage detected