Create a `Backend` for tests with a specific workspace root and PSR-4 mappings pre-configured.
(
workspace_root: PathBuf,
psr4_mappings: Vec<composer::Psr4Mapping>,
)
| 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 |
nothing calls this directly
no test coverage detected