diff --git a/Classes/Core/BaseTestCase.php b/Classes/Core/BaseTestCase.php index 6933db95..92659f21 100644 --- a/Classes/Core/BaseTestCase.php +++ b/Classes/Core/BaseTestCase.php @@ -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); @@ -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,