Manual talk:Writing testable PHP code

Do not use exit
What alternative should one use?