Preheat the oven at 190 C fan force.
Chop the bacon and vegetables.
Heat the oil In a fry pan on medium heat. Fry the bacon for a few minutes until the fat has released and the bacon is starting to look cooked.
Add the mushrooms, and fry for a few more minutes or until the moisture has dried up in the mushrooms.
Add the onions and tomatoes, season with salt and pepper then give the mixture a good stir and remove from heat. There's no need to cook the onions or tomatoes, this step is just to warm through and combine with the other ingredients.
Allow the sheet of puff pastry to thaw to the point where it can be easily cut and handled. Using the photos above as a guide, cut into four squares. For each square, cut from the centre of each edge towards the centre, stopping before you get to the middle.
Grease four holes in the muffin/cupcake tin.
Using the photos above as a guide, place one puff pastry square into one of the holes. Mould the pastry to the tin by overlapping the four cut sides over each other.
Divide the filling between the four cases, then crack a egg over the top.
Top with a fleck of butter, a grating of parmesan cheese and season with cracked pepper.
Cook in the oven for 15 minutes.
Serve either on its own, or with tomato paste or tomato relish and some finely chopped parsley.