Przeglądaj źródła

ZF-6870 - Documented possible pitfalls with redirector action helper issuing exit() when using Zend_Test_PHPUnit_ControllerTestCase

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18221 44c647ce-9c0f-0410-b52a-842ac1e357ba
beberlei 16 lat temu
rodzic
commit
f4bf15d939

+ 7 - 0
documentation/manual/en/module_specs/Zend_Test-PHPUnit-Testing.xml

@@ -3,6 +3,13 @@
 <sect2 id="zend.test.phpunit.testing">
 <sect2 id="zend.test.phpunit.testing">
     <title>Testing your Controllers and MVC Applications</title>
     <title>Testing your Controllers and MVC Applications</title>
 
 
+    <important>
+        <para>
+            The redirect action helper issues an <code>exit()</code> statement in
+            some situtions which obviously also stops a test running for this method.
+        </para>
+    </important>
+
     <para>
     <para>
         Once you have your bootstrap in place, you can begin testing. Testing
         Once you have your bootstrap in place, you can begin testing. Testing
         is basically as you would expect in an PHPUnit test suite, with a few
         is basically as you would expect in an PHPUnit test suite, with a few