test(provider): update ProbeTraitTest stub for split fetch API
The anonymous ProviderInterface implementation needs startFetch()/ resolveFetch() instead of fetch() to stay loadable.
This commit is contained in:
1 parent
fcf841f7ad
commit
f2bf24994c
1 file changed
+2
-1
@@ -31,7 +31,8 @@ final class ProbeTraitTest extends TestCase
|
|||||||
public function isConfigured(): bool { return $this->configured; }
|
public function isConfigured(): bool { return $this->configured; }
|
||||||
public function getName(): string { return 'test'; }
|
public function getName(): string { return 'test'; }
|
||||||
public function ping(): void { ($this->ping)(); }
|
public function ping(): void { ($this->ping)(); }
|
||||||
public function fetch(): array { return []; }
|
public function startFetch(): mixed { return null; }
|
||||||
|
public function resolveFetch(mixed $handle): array { return []; }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user