()
| 546 | |
| 547 | #[test] |
| 548 | fn test_require_once_statement_form() { |
| 549 | let content = concat!( |
| 550 | "<?php\n", |
| 551 | "require_once 'Trustly/exceptions.php';\n", |
| 552 | "require_once 'Trustly/Data/data.php';\n", |
| 553 | ); |
| 554 | let paths = extract_require_once_paths(content); |
| 555 | assert_eq!(paths.len(), 2); |
| 556 | assert_eq!(paths[0], "Trustly/exceptions.php"); |
| 557 | assert_eq!(paths[1], "Trustly/Data/data.php"); |
| 558 | } |
| 559 | |
| 560 | #[test] |
| 561 | fn test_require_once_function_form() { |
nothing calls this directly
no test coverage detected