Introduction
Yaf_Application provides a bootstrapping facility
for applications which provides reusable resources, common- and
module-based bootstrap classes and dependency checking.
Note:
Yaf_Application implements the singleton
pattern, and Yaf_Application can not be
serialized or unserialized, which will cause problems when you try
to use PHPUnit to write some test cases for Yaf.
You may use the @backupGlobals annotation of
PHPUnit to control the backup and restore operations for global
variables, thus solving this problem.