1
0
Fork 0
mirror of synced 2025-04-05 06:03:37 +03:00

Fix declaration of TestCase

This commit is contained in:
Eugene Polozov 2020-12-21 17:57:59 +03:00
parent b45790e368
commit 87822e94dd

View file

@ -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);