In a sauté pan add olive oil and heat. Add the onions. Season with salt and pepper. Cook until the onions are tender and translucent. Lower the heat and add the garlic. Add the beans and stock. Cover and simmer for about 20 to 30 minutes. Green beans should be very tender.