svn: /phpdoc/en/trunk/reference/yaf/ yaf-application.xml
| From: | Xinchen Hui | Date: | Tue, 29 Nov 2011 11:24:02 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/yaf/ yaf-application.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9097@lists.php.net to get a copy of this message | ||
laruence Tue, 29 Nov 2011 11:24:02 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=320152
Log:
explain how to work with PHPUnit
Changed paths:
U phpdoc/en/trunk/reference/yaf/yaf-application.xml
Modified: phpdoc/en/trunk/reference/yaf/yaf-application.xml
===================================================================
--- phpdoc/en/trunk/reference/yaf/yaf-application.xml 2011-11-29 11:15:45 UTC (rev 320151)
+++ phpdoc/en/trunk/reference/yaf/yaf-application.xml 2011-11-29 11:24:02 UTC (rev 320152)
@@ -13,10 +13,25 @@
<section xml:id="yaf-application.intro">
&reftitle.intro;
<para>
- Yaf_Application provides a bootstrapping facility for applications which
- provides reusable resources, common- and module-based bootstrap classes
- and dependency checking.
+ <classname>Yaf_Application</classname> provides a bootstrapping facility
+ for applications which provides reusable resources, common- and
+ module-based bootstrap classes and dependency checking.
</para>
+ <para>
+ <note>
+ <para>
+ <classname>Yaf_Application</classname> implements the singleton
+ pattern, and <classname>Yaf_Application</classname> can not be
+ serialized or unserialized which will cause problem when you try
+ to use PHPUnit to write some test case for Yaf.
+ </para>
+ <para>
+ You may use @backupGlobals annotation of PHPUnit to control the
+ backup and restore operations for global variables. thus can solve
+ this promblem.
+ </para>
+ </note>
+ </para>
</section>
<!-- }}} -->