Seditio Source
Root |
./othercms/croogo-4.0.7/vendor/phpunit/phpunit/tests/end-to-end/regression/GitHub/2591/SeparateFunctionNoPreserveTest.php
<?php
use PHPUnit\Framework\TestCase;

/**
 * @runTestsInSeparateProcesses
 * @preserveGlobalState disabled
 */
class Issue2591_SeparateFunctionNoPreserveTest extends TestCase
{
    public function
testChangedGlobalString()
    {
       
$GLOBALS['globalString'] = 'Hello!';
       
$this->assertEquals('Hello!', $GLOBALS['globalString']);
    }

    public function
testGlobalString()
    {
       
$this->assertEquals('Hello', $GLOBALS['globalString']);
    }

}