From 218e82d116ba5ef6b645d079154b0f2afad88447 Mon Sep 17 00:00:00 2001 From: Alexey Kopytko Date: Mon, 1 Mar 2021 19:34:09 +0900 Subject: [PATCH] ProxyTrace should check for tests locations Fixes #1480 --- src/TestFramework/Coverage/ProxyTrace.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/TestFramework/Coverage/ProxyTrace.php b/src/TestFramework/Coverage/ProxyTrace.php index c1597df0b..0a60b8d63 100644 --- a/src/TestFramework/Coverage/ProxyTrace.php +++ b/src/TestFramework/Coverage/ProxyTrace.php @@ -108,6 +108,10 @@ public function getTests(): ?TestLocations public function getAllTestsForMutation(NodeLineRangeData $lineRange, bool $isOnFunctionSignature): iterable { + if ($this->lazyTestLocations === null) { + return []; + } + return $this->getTestLocator()->getAllTestsForMutation($lineRange, $isOnFunctionSignature); }