mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
e7bdaa4244
b6f53b95e8
add mock object test fixture (#5335)
25 lines
575 B
PHP
25 lines
575 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace PHPUnit\Framework;
|
|
|
|
use PHPUnit\Event\NoPreviousThrowableException;
|
|
use PHPUnit\Framework\MockObject\MockObject;
|
|
|
|
if (! class_exists('PHPUnit\Framework\TestCase')) {
|
|
abstract class TestCase
|
|
{
|
|
/**
|
|
* @psalm-template RealInstanceType of object
|
|
*
|
|
* @psalm-param class-string<RealInstanceType> $originalClassName
|
|
*
|
|
* @psalm-return MockObject&RealInstanceType
|
|
*/
|
|
protected function createMock(string $originalClassName): MockObject
|
|
{
|
|
}
|
|
}
|
|
}
|