"Fossies" - the Fresh Open Source Software Archive

Member "advanced/vendor/phpunit/phpunit/tests/end-to-end/regression/GitHub/2591-separate-class-preserve.phpt" (19 Nov 2019, 710 Bytes) of package /linux/www/yii-advanced-app-2.0.30.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 --TEST--
    2 GH-2591: Test class process isolation with preserving global state and with loaded bootstrap.
    3 Expected result is to have a global variable modified in first test to be the same in the second.
    4 --FILE--
    5 <?php
    6 
    7 $_SERVER['argv'][1] = '--no-configuration';
    8 $_SERVER['argv'][2] = '--bootstrap';
    9 $_SERVER['argv'][3] = __DIR__ . '/2591/bootstrapWithBootstrap.php';
   10 $_SERVER['argv'][4] = __DIR__ . '/2591/SeparateClassPreserveTest.php';
   11 
   12 require __DIR__ . '/../../../bootstrap.php';
   13 PHPUnit\TextUI\Command::main();
   14 --EXPECTF--
   15 PHPUnit %s by Sebastian Bergmann and contributors.
   16 
   17 ...                                                                 3 / 3 (100%)
   18 
   19 Time: %s, Memory: %s
   20 
   21 OK (3 tests, 3 assertions)