Heat the oil in a heavy 4-quart pot over medium heat. Add the garlic, onion, string beans, tomato, salt, and pepper. Stir well to coat with the oil. Cover and cook, stirring occasionally, for 10 minutes, or until the vegetables have softened and released some of their juices.