Skip to content

Commit eb0be1c

Browse files
The generate exceptions path in classes was wrong, this has been corrected.
1 parent 8ce7523 commit eb0be1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generators/MockMethodOverrideGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function generateMethodOverride(ReflectionMethod $method, bool $callPa
5656
$mockCode .= " return parent::$methodName($argList);\n";
5757
}
5858
} else {
59-
$mockCode .= " throw new \\Zeus\\Mock\\MockMethodNotFoundException('Method $methodName is not mocked.');\n";
59+
$mockCode .= " throw new \\Zeus\\Mock\\Exceptions\\MockMethodNotFoundException('Method $methodName is not mocked.');\n";
6060
}
6161

6262
$mockCode .= " }\n";
@@ -206,7 +206,7 @@ protected function generateCallMethod(): string
206206
if ($this->mockFactory->hasMethodMock($methodName)) {
207207
return $this->mockFactory->invokeMockedMethod($methodName, $arguments);
208208
}
209-
throw new \Zeus\Mock\MockMethodNotFoundException("Method $methodName not found or mocked.");
209+
throw new \Zeus\Mock\Exceptions\MockMethodNotFoundException("Method $methodName not found or mocked.");
210210
}';
211211
}
212212
}

0 commit comments

Comments
 (0)