Fix effect across tests.
authorGunnar Wrobel <p@rdus.de>
Thu, 11 Nov 2010 18:35:49 +0000 (19:35 +0100)
committerGunnar Wrobel <p@rdus.de>
Thu, 11 Nov 2010 21:31:12 +0000 (22:31 +0100)
components/test/Components/StoryTestCase.php

index c12bac4..a92fabd 100644 (file)
@@ -267,6 +267,7 @@ extends PHPUnit_Extensions_Story_TestCase
             break;
         case 'calling the package with the devpackage option, the archive directory option and a path to an invalid Horde framework component':
             $this->_setPearGlobals();
+            $cwd = getcwd();
             $_SERVER['argv'] = array(
                 'horde-components',
                 '--verbose',
@@ -280,6 +281,7 @@ extends PHPUnit_Extensions_Story_TestCase
                 ob_end_clean();
                 $world['output'] = (string) $e;
             }
+            chdir($cwd);
             break;
         case 'calling the package with the distribute option and a path to a Horde framework component':
             $_SERVER['argv'] = array(