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

Method new_test_with_workspace

src/lib.rs:866–876  ·  view source on GitHub ↗

Create a `Backend` for tests with a specific workspace root and PSR-4 mappings pre-configured.

(
        workspace_root: PathBuf,
        psr4_mappings: Vec<composer::Psr4Mapping>,
    )

Source from the content-addressed store, hash-verified

864 /// Create a `Backend` for tests with a specific workspace root and PSR-4
865 /// mappings pre-configured.
866 pub fn new_test_with_workspace(
867 workspace_root: PathBuf,
868 psr4_mappings: Vec<composer::Psr4Mapping>,
869 ) -> Self {
870 virtual_members::phpdoc::clear_mixin_cache();
871 Self {
872 workspace_root: Arc::new(RwLock::new(Some(workspace_root))),
873 psr4_mappings: Arc::new(RwLock::new(psr4_mappings)),
874 ..Self::test_defaults()
875 }
876 }
877
878 // ── Public accessors for integration tests ──────────────────────────
879

Callers

nothing calls this directly

Calls 1

clear_mixin_cacheFunction · 0.85

Tested by

no test coverage detected