Only add __wakeup method to generated mock class if mocked class contains either no __wakeup or a non-final __wakeup method. This allows classes which define a final __wakeup to be mocked (e.g. PDO)