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

Function test_require_once_statement_form

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

Source from the content-addressed store, hash-verified

546
547#[test]
548fn 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]
561fn test_require_once_function_form() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected