Skip to content

Commit

Permalink
Fix CS/WS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 7, 2018
1 parent 7b15efa commit 6897f21
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/Framework/MockObject/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,7 @@ private function generateMock($type, $methods, $mockClassName, $callOriginalClon
$cloneArguments,
$callOriginalMethods
);

$configurable[] = \strtolower($methodName);
}
} catch (ReflectionException $e) {
Expand All @@ -779,6 +780,7 @@ private function generateMock($type, $methods, $mockClassName, $callOriginalClon
$methodName,
$cloneArguments
);

$configurable[] = \strtolower($methodName);
}
}
Expand All @@ -790,6 +792,7 @@ private function generateMock($type, $methods, $mockClassName, $callOriginalClon
$cloneArguments,
$callOriginalMethods
);

$configurable[] = \strtolower($methodName);
}
}
Expand All @@ -800,6 +803,7 @@ private function generateMock($type, $methods, $mockClassName, $callOriginalClon
$methodName,
$cloneArguments
);

$configurable[] = \strtolower($methodName);
}
}
Expand All @@ -825,9 +829,15 @@ private function generateMock($type, $methods, $mockClassName, $callOriginalClon
'mock_class_name' => $mockClassName['className'],
'mocked_methods' => $mockedMethods,
'method' => $method,
'configurable' => '[' . \implode(', ', \array_map(function ($m) {
return '\'' . $m . '\'';
}, $configurable)) . ']'
'configurable' => '[' . \implode(
', ',
\array_map(
function ($m) {
return '\'' . $m . '\'';
},
$configurable
)
) . ']'
]
);

Expand Down

0 comments on commit 6897f21

Please sign in to comment.