PHP Classes

File: vendor/phpunit/phpunit/tests/Regression/GitHub/2591-separate-class-preserve-no-bootstrap.phpt

Recommend this page to a friend!
  Packages of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/phpunit/phpunit/tests/Regression/GitHub/2591-separate-class-preserve-no-bootstrap.phpt   Download  
File: vendor/phpunit/phpunit/tests/Regression/GitHub/2591-separate-class-preserve-no-bootstrap.phpt
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 9 months ago
Size: 927 bytes
 

Contents

Class file image Download
--TEST-- GH-2591: Test class process isolation with preserving global state and with loaded bootstrap, without global string. Expected result is to have an error in first test, and then have variable set in second test to be visible in third. --FILE-- <?php $_SERVER['argv'][1] = '--no-configuration'; $_SERVER['argv'][2] = '--bootstrap'; $_SERVER['argv'][3] = __DIR__ . '/2591/bootstrapWithBootstrapNoGlobal.php'; $_SERVER['argv'][4] = __DIR__ . '/2591/SeparateClassPreserveTest.php'; require __DIR__ . '/../../bootstrap.php'; PHPUnit\TextUI\Command::main(); --EXPECTF-- PHPUnit %s by Sebastian Bergmann and contributors. E.. 3 / 3 (100%) Time: %s, Memory: %s There was 1 error: 1) Issue2591_SeparateClassPreserveTest::testOriginalGlobalString Undefined index: globalString %sSeparateClassPreserveTest.php:%d ERRORS! Tests: 3, Assertions: 2, Errors: 1.