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

Function test_require_once_double_quotes

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

Source from the content-addressed store, hash-verified

572
573#[test]
574fn test_require_once_double_quotes() {
575 let content = concat!(
576 "<?php\n",
577 "require_once \"Trustly/exceptions.php\";\n",
578 "require_once(\"Trustly/Data/data.php\");\n",
579 );
580 let paths = extract_require_once_paths(content);
581 assert_eq!(paths.len(), 2);
582 assert_eq!(paths[0], "Trustly/exceptions.php");
583 assert_eq!(paths[1], "Trustly/Data/data.php");
584}
585
586#[test]
587fn test_require_once_mixed_forms() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected