package languages import ( "testing" "github.com/zzet/gortex/internal/graph" ) // callEdgeReceiver returns the receiver_type meta of the first EdgeCalls whose // target method bare-name matches `method`. func callEdgeReceiver(edges []*graph.Edge, method string) (string, bool, bool) { for _, e := range edges { if e.Kind != graph.EdgeCalls || e.To != "unresolved::*."+method { continue } if e.Meta == nil { return "", false, true } rt, ok := e.Meta["receiver_type"].(string) return rt, ok, true } return "", false, false } // TestPHPFacade_BuiltinMapsToBackingClass pins the Laravel facade table: a // `Cache::get()` static call is stamped with the backing Repository as its // receiver type, so the resolver binds it to Repository::get rather than an // unrelated name-only `get`. func TestPHPFacade_BuiltinMapsToBackingClass(t *testing.T) { src := []byte(`