As both countries are in Schengen, no border formalities - you just drive through. All you notice you've crossed is a change in signage (different language) and perhaps the state of the road. Also remember there's one-hour time difference, Portugal being one hour behind Spain.