According to line 160 of PHPUnit/Framework/MockObject/Generator.php null is also a valid value for $methods.  Therefore, the type hint in the MockBuilder setMethods() method is overly agressive and should be removed so that the error log does not have to be cluttered with warnings.
According to line 160 of PHPUnit/Framework/MockObject/Generator.php null is also a valid value for $methods.  Therefore, the type hint in the MockBuilder setMethods() method is overly agressive and should be removed so that the error log does not have to be cluttered with warnings.
Firehed/phpunit,sebastianbergmann/phpunit