Glass box testing (also called white box or clear box testing) examines internal code structure, logic flow, algorithms, and implementation details. Testers need knowledge of the code's internal workings to design tests. This directly matches 'testing based on internal logic'.