Skip to content

Commit

Permalink
[TASK] Happify phpstan
Browse files Browse the repository at this point in the history
Remove two obsolete exceptions - empty string will
throw in \ReflectionClass by PHP.
  • Loading branch information
lolli42 committed Jun 11, 2024
1 parent 359dd58 commit 1be00f6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Classes/Core/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ protected function getAccessibleMock(
$callOriginalClone = true,
$callAutoload = true
) {
if ($originalClassName === '') {
throw new \InvalidArgumentException('$originalClassName must not be empty.', 1334701880);
}

$mockBuilder = $this->getMockBuilder($this->buildAccessibleProxy($originalClassName))
->setConstructorArgs($arguments)
->setMockClassName($mockClassName);
Expand Down Expand Up @@ -106,10 +102,6 @@ protected function getAccessibleMockForAbstractClass(
$callAutoload = true,
$mockedMethods = []
) {
if ($originalClassName === '') {
throw new \InvalidArgumentException('$originalClassName must not be empty.', 1384268260);
}

return $this->getMockForAbstractClass(
$this->buildAccessibleProxy($originalClassName),
$arguments,
Expand Down

0 comments on commit 1be00f6

Please sign in to comment.