Skip to content
This repository
Browse code

- Leftover from [567].

  • Loading branch information...
commit b935002ceda1af9346efb0c9ba3f98f789f9e6bb 1 parent 0f05465
Sebastian Bergmann authored March 14, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  PHPUnit/Framework/MockObject/Mock.php
2  PHPUnit/Framework/MockObject/Mock.php
@@ -111,7 +111,7 @@ public function __construct($className, array $methods = array(), $mockClassName
111 111
             );
112 112
         }
113 113
 
114  
-        if (empty($methods) && class_exists($className, FALSE)) {
  114
+        if (empty($methods) && (class_exists($className, FALSE) || interface_exists($className, FALSE))) {
115 115
             $methods = get_class_methods($className);
116 116
         }
117 117
 

0 notes on commit b935002

Please sign in to comment.
Something went wrong with that request. Please try again.