Skip to content

Commit

Permalink
Support createPartialMock
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Bigelmayr committed Jan 3, 2025
1 parent 0f39f20 commit 9e91436
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ public function enterNode(Node $node): ?Node
}

$methodName = $node->name->toString();
if (! in_array($methodName, ['getMock', 'createMock', 'mock', 'getMockBuilder'], true)) {
$mockMethodNames = [
'createMock',
'createPartialMock',
'getMock',
'getMockBuilder',
'mock',
];
if (! in_array($methodName, $mockMethodNames, true)) {
return null;
}

Expand Down

0 comments on commit 9e91436

Please sign in to comment.