Fix declaration of TestCase
This commit is contained in:
parent
b45790e368
commit
87822e94dd
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ if (!class_exists('\PHPUnit\Framework\TestCase')) {
|
|||
|
||||
abstract class TestCase extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function createMock(string $originalClassName): \PHPUnit\Framework\MockObject\MockObject
|
||||
public function createMock(string $originalClassName)
|
||||
{
|
||||
if (method_exists(\PHPUnit\Framework\TestCase::class, 'createMock')) {
|
||||
return parent::createMock($originalClassName);
|
||||
|
@ -40,7 +40,7 @@ if (!class_exists('\PHPUnit\Framework\TestCase')) {
|
|||
|
||||
abstract class TestCase extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function createMock(string $originalClassName): \PHPUnit\Framework\MockObject\MockObject
|
||||
public function createMock(string $originalClassName)
|
||||
{
|
||||
if (method_exists(\PHPUnit\Framework\TestCase::class, 'createMock')) {
|
||||
return parent::createMock($originalClassName);
|
||||
|
|
Loading…
Add table
Reference in a new issue