Skip to content

Commit

Permalink
complete method return
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasThal committed Jan 26, 2015
1 parent 7403bb8 commit dfdcad5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Phake/ClassGenerator/MockClass.php
Expand Up @@ -339,6 +339,8 @@ private function isConstructorDefinedAndFinal(ReflectionClass $mockedClass)
if (!empty($constructor) && $constructor->isFinal()) {
return true;
}

return false;
}

private function generateSafeConstructorOverride(ReflectionClass $mockedClass)
Expand Down
5 changes: 5 additions & 0 deletions tests/PhakeTest/MockedFinalConstructedClass.php
Expand Up @@ -42,6 +42,11 @@
* @link http://www.digitalsandwich.com/
*/

/**
* Class PhakeTest_MockedFinalConstructedClass
*
* @author Nicolas Thal<nico.th4l@gmail.com>
*/
class PhakeTest_MockedFinalConstructedClass
{
private $prop1;
Expand Down

0 comments on commit dfdcad5

Please sign in to comment.