Can you test your endstops with M119?

Has anything changed recently?