Преглед изворни кода

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 пре 15 година
родитељ
комит
7ea79ade47
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      tests/Zend/Session/SessionTest.php

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

@@ -20,12 +20,7 @@
  * @version    $Id$
  */
 
-
-/**
- * PHPUnit test case
- */
-require_once 'PHPUnit/Framework/TestCase.php';
-
+require_once dirname(__FILE__) . '/../../TestHelper.php';
 
 /**
  * @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
      *
+     * @runInSeparateProcess
      * @return void
      */
     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
      *
+     * @runInSeparateProcess
      * @return void
      */
     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
      *
+     * @runInSeparateProcess
      * @return void
      */
     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
      *
+     * @runInSeparateProcess
      * @return void
      */
     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
      *
+     * @runInSeparateProcess
      * @return void
      */
     public function testSetExpireSessionVarsByHopsOnUse()