Explorar el Código

ZF-8600: add @runInSeparateProcess annotations

- Added @runInSeparateProcess annotations to select tests to allow them to run
  and pass.
- require_once the TestHelper to allow running test case by itself

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23348 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew hace 15 años
padre
commit
7ea79ade47
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      tests/Zend/Session/SessionTest.php

+ 6 - 6
tests/Zend/Session/SessionTest.php

@@ -20,12 +20,7 @@
  * @version    $Id$
  * @version    $Id$
  */
  */
 
 
-
-/**
- * PHPUnit test case
- */
-require_once 'PHPUnit/Framework/TestCase.php';
-
+require_once dirname(__FILE__) . '/../../TestHelper.php';
 
 
 /**
 /**
  * @see Zend_Session
  * @see Zend_Session
@@ -783,6 +778,7 @@ class Zend_SessionTest extends PHPUnit_Framework_TestCase
     /**
     /**
      * test expiration of namespaces and namespace variables by seconds; expect expiration of specified keys/namespace
      * test expiration of namespaces and namespace variables by seconds; expect expiration of specified keys/namespace
      *
      *
+     * @runInSeparateProcess
      * @return void
      * @return void
      */
      */
     public function testSetExpirationSeconds()
     public function testSetExpirationSeconds()
@@ -842,6 +838,7 @@ class Zend_SessionTest extends PHPUnit_Framework_TestCase
     /**
     /**
      * test expiration of namespaces by hops; expect expiration of specified namespace in the proper number of hops
      * test expiration of namespaces by hops; expect expiration of specified namespace in the proper number of hops
      *
      *
+     * @runInSeparateProcess
      * @return void
      * @return void
      */
      */
     public function testSetExpireSessionHops()
     public function testSetExpireSessionHops()
@@ -874,6 +871,7 @@ class Zend_SessionTest extends PHPUnit_Framework_TestCase
     /**
     /**
      * test expiration of namespace variables by hops; expect expiration of specified keys in the proper number of hops
      * test expiration of namespace variables by hops; expect expiration of specified keys in the proper number of hops
      *
      *
+     * @runInSeparateProcess
      * @return void
      * @return void
      */
      */
     public function testSetExpireSessionVarsByHops1()
     public function testSetExpireSessionVarsByHops1()
@@ -884,6 +882,7 @@ class Zend_SessionTest extends PHPUnit_Framework_TestCase
     /**
     /**
      * sanity check .. we should be able to repeat this test without problems
      * sanity check .. we should be able to repeat this test without problems
      *
      *
+     * @runInSeparateProcess
      * @return void
      * @return void
      */
      */
     public function testSetExpireSessionVarsByHops2()
     public function testSetExpireSessionVarsByHops2()
@@ -949,6 +948,7 @@ class Zend_SessionTest extends PHPUnit_Framework_TestCase
     /**
     /**
      * test expiration of namespace variables by hops; expect expiration of specified keys in the proper number of hops
      * test expiration of namespace variables by hops; expect expiration of specified keys in the proper number of hops
      *
      *
+     * @runInSeparateProcess
      * @return void
      * @return void
      */
      */
     public function testSetExpireSessionVarsByHopsOnUse()
     public function testSetExpireSessionVarsByHopsOnUse()