()
| 2157 | |
| 2158 | #[test] |
| 2159 | fn parses_variadic_param() { |
| 2160 | let text = "function test(string ...$names): void {}"; |
| 2161 | let info = parse_declaration_info(text); |
| 2162 | assert_eq!(info.params.len(), 1); |
| 2163 | assert_eq!( |
| 2164 | info.params[0], |
| 2165 | (Some(PhpType::parse("string")), "$names".to_string()) |
| 2166 | ); |
| 2167 | } |
| 2168 | |
| 2169 | #[test] |
| 2170 | fn parses_reference_param() { |
nothing calls this directly
no test coverage detected