mirror of
https://github.com/danog/psalm-plugin-phpunit.git
synced 2024-12-02 09:27:56 +01:00
34 lines
828 B
PHP
34 lines
828 B
PHP
<?php
|
|
namespace PHPUnit\Framework;
|
|
|
|
use PHPUnit\Framework\MockObject\MockObject;
|
|
use PHPUnit\Framework\MockObject\MockBuilder;
|
|
use Prophecy\Prophecy\ObjectProphecy;
|
|
|
|
abstract class TestCase extends Assert implements Test, SelfDescribing
|
|
{
|
|
/**
|
|
* @template T
|
|
* @param class-string<T> $class
|
|
* @return MockObject&T
|
|
*/
|
|
public function createMock($class) {}
|
|
|
|
/**
|
|
* Returns a builder object to create mock objects using a fluent interface.
|
|
*
|
|
* @template T
|
|
* @param class-string<T> $className
|
|
*
|
|
* @return MockBuilder<T>
|
|
*/
|
|
public function getMockBuilder(string $className) {}
|
|
|
|
/**
|
|
* @template T
|
|
* @param class-string<T> $classOrInterface
|
|
* @return ObjectProphecy<T>
|
|
*/
|
|
public function prophesize($classOrInterface): ObjectProphecy {}
|
|
}
|