Each value in $types can be either a class name, or an ad hoc mock
definition. If only a single type is being mocked, the class name or
definition can be passed without being wrapped in an array.
public function create($types = array())
{
return new MockBuilder($types, $this->mockFactory, $this->handleFactory, $this->invocableInspector, $this->featureDetector);
}