2018-11-14 06:36:33 +01:00
|
|
|
<?php
|
|
|
|
namespace PHPUnit\Framework;
|
|
|
|
|
|
|
|
use PHPUnit\Framework\MockObject\MockObject;
|
2018-11-25 00:27:52 +01:00
|
|
|
use PHPUnit\Framework\MockObject\MockBuilder;
|
2018-12-10 12:02:12 +01:00
|
|
|
use Prophecy\Prophecy\ObjectProphecy;
|
2018-11-14 06:36:33 +01:00
|
|
|
|
|
|
|
abstract class TestCase extends Assert implements Test, SelfDescribing
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @template T
|
|
|
|
* @template-typeof T $class
|
|
|
|
* @param class-string $class
|
|
|
|
* @return MockObject&T
|
|
|
|
*/
|
|
|
|
public function createMock($class) {}
|
2018-11-25 00:27:52 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a builder object to create mock objects using a fluent interface.
|
|
|
|
*
|
|
|
|
* @template T
|
|
|
|
* @template-typeof T $className
|
|
|
|
* @param class-string $className
|
|
|
|
*
|
|
|
|
* @return MockBuilder<T>
|
|
|
|
*/
|
|
|
|
public function getMockBuilder(string $className) {}
|
2018-12-08 23:26:47 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @template T
|
|
|
|
* @template-typeof T $classOrInterface
|
|
|
|
* @param class-string $classOrInterface
|
|
|
|
* @return ObjectProphecy<T>
|
|
|
|
*/
|
|
|
|
public function prophesize($classOrInterface): ObjectProphecy {}
|
2018-11-25 00:27:52 +01:00
|
|
|
}
|