summaryrefslogtreecommitdiffstats
path: root/php-sebastian-global-state4-tests.patch
blob: 6ed9d52725a47888dc230b86be0038cf1af39ea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -up ./tests/CodeExporterTest.php.old ./tests/CodeExporterTest.php
--- ./tests/CodeExporterTest.php.old	2021-11-05 12:23:16.685055861 +0100
+++ ./tests/CodeExporterTest.php	2021-11-05 12:23:19.837046004 +0100
@@ -21,7 +21,7 @@ final class CodeExporterTest extends Tes
      */
     public function testCanExportGlobalVariablesToCode(): void
     {
-        $GLOBALS = ['foo' => 'bar'];
+        $GLOBALS['foo'] = 'bar';
 
         $snapshot = new Snapshot(null, true, false, false, false, false, false, false, false, false);