Skip to content

Commit

Permalink
Detect getMockBuilder (#38)
Browse files Browse the repository at this point in the history
It should also detect PHPUnit's `\PHPUnit\Framework\TestCase::getMockBuilder`.
  • Loading branch information
ruudk committed Jul 2, 2024
1 parent 5c54cf1 commit c94c2a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function enterNode(Node $node)
}

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

Expand Down

0 comments on commit c94c2a0

Please sign in to comment.