MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / test_require_once_function_form

Function test_require_once_function_form

tests/unit/composer.rs:561–571  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

559
560#[test]
561fn 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]
574fn test_require_once_double_quotes() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected