Skip to content

Commit

Permalink
Add TestCase::createConfigured/PartialMock() to stub
Browse files Browse the repository at this point in the history
Previously the create-configured and create-partial mock-methods were not
part of the stub.

Add them.
  • Loading branch information
ktomk committed Aug 6, 2020
1 parent 9e9a8bb commit 45fd05f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions stubs/TestCase.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ abstract class TestCase extends Assert implements Test, SelfDescribing
*/
protected function createMock($class) {}

/**
* @template T
* @param class-string<T> $class
* @param array<string, mixed> $config
* @return MockObject&T
*/
protected function createConfiguredMock($class, array $config) {}

/**
* Returns a partial test double for the specified class.
*
* @template T
* @param class-string<T> $class
* @param array<array-key, string> $methods
* @return MockObject&T
*/
protected function createPartialMock($class, array $methods) {}

/**
* Returns a builder object to create mock objects using a fluent interface.
*
Expand Down

0 comments on commit 45fd05f

Please sign in to comment.