Newer vehicles are equipped with a brake warning lamp on the instrument panel. This lamp:

The brake warning lamp should go out when the parking brake is released. If it illuminates when the foot brake pedal is pressed, the brake system is defective and the vehicle should not be driven.
DMV Writen Test