Skip to content

Commit 420426a

Browse files
committed
Use OnlyMethods rather than addMethods
1 parent e6c0297 commit 420426a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getMockSkipConstructor($className, array $methods = array(), arr
3737
{
3838
$builder = $this->getMockBuilder($className)->disableOriginalConstructor();
3939
if ($methods) {
40-
$builder = $builder->addMethods($methods);
40+
$builder = $builder->onlyMethods($methods);
4141
}
4242
if ($arguments) {
4343
$builder = $builder->setConstructorArgs($arguments);

0 commit comments

Comments
 (0)