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

Method new_test

src/lib.rs:809–812  ·  view source on GitHub ↗

Create a `Backend` without an LSP client (for unit / integration tests). Uses empty stub indices for fast construction. Tests that need specific stubs should use [`new_test_with_stubs`] or [`new_test_with_all_stubs`] instead.

()

Source from the content-addressed store, hash-verified

807 /// specific stubs should use [`new_test_with_stubs`] or
808 /// [`new_test_with_all_stubs`] instead.
809 pub fn new_test() -> Self {
810 virtual_members::phpdoc::clear_mixin_cache();
811 Self::test_defaults()
812 }
813
814 /// Create a `Backend` for tests that need the full embedded stub
815 /// indices (e.g. benchmarks, end-to-end tests exercising real PHP

Callers

nothing calls this directly

Calls 1

clear_mixin_cacheFunction · 0.85

Tested by

no test coverage detected