Many posts on this - search would be a good idea. Look for "stubs" and "drivers".
In a nutshell, a stub is a dummied up procedure that is called by a routine under test. A driver is a dummied up procedure that calls the routine under test. Together, stubs and drivers make up a test harness.