A test double is any stand-in for a real dependency, an umbrella term covering dummies, stubs, spies, mocks and fakes.
The term comes from the film industry: a "stunt double" replaces the actor for dangerous scenes. In software testing, a test double replaces a real dependency for cases where using the real one is impractical, slow, non-deterministic or impossible.
There are five flavors, each solving a different problem. This is the taxonomy formalized by Gerard Meszaros in xUnit Test Patterns (2007) and popularized by Martin Fowler's Mocks Aren't Stubs (2007).