Why the phase of ovm_component can be invoked atuomaticly?

Dear all,
I know those phase can be invoked automaticly,but how OVM make it?
Is there any tricks?
Thank you very much!

run_test trick the phase

and i think you’d better read the source codes of OVM