Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Check for method method to avoid collision
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeniy Makhrov authored and sebastianbergmann committed Apr 20, 2016
1 parent 7b18bbd commit e630305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/MockObject/Generator.php
Expand Up @@ -819,7 +819,7 @@ private function generateMock($type, $methods, $mockClassName, $callOriginalClon

$method = '';

if (!in_array('method', $methods)) {
if (!in_array('method', $methods) && (!isset($class) || !$class->hasMethod('method'))) {
$methodTemplate = new Text_Template(
$templateDir . 'mocked_class_method.tpl'
);
Expand Down

0 comments on commit e630305

Please sign in to comment.