()
| 559 | |
| 560 | #[test] |
| 561 | fn test_require_once_function_form() { |
| 562 | let content = concat!( |
| 563 | "<?php\n", |
| 564 | "require_once('Trustly/exceptions.php');\n", |
| 565 | "require_once('Trustly/Data/data.php');\n", |
| 566 | ); |
| 567 | let paths = extract_require_once_paths(content); |
| 568 | assert_eq!(paths.len(), 2); |
| 569 | assert_eq!(paths[0], "Trustly/exceptions.php"); |
| 570 | assert_eq!(paths[1], "Trustly/Data/data.php"); |
| 571 | } |
| 572 | |
| 573 | #[test] |
| 574 | fn test_require_once_double_quotes() { |
nothing calls this directly
no test coverage detected