What ophthalmic testing device is used to determine an individual's eyeglass prescription?

What ophthalmic testing device is used to determine an individual's eyeglass prescription?