Skip to content
This repository was archived by the owner on Apr 12, 2018. It is now read-only.

Commit b98c643

Browse files
1 parent 85f1d22 commit b98c643

File tree

4 files changed

+72
-16
lines changed

4 files changed

+72
-16
lines changed

src/6.0/en/fixtures.xml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,27 @@ class DatabaseTest extends TestCase
345345
<indexterm><primary>Global Variable</primary></indexterm>
346346
<indexterm><primary>Test Isolation</primary></indexterm>
347347

348-
By default, PHPUnit runs your tests in a way where changes to global
349-
and super-global variables (<literal>$GLOBALS</literal>,
348+
Prior to version 6, by default, PHPUnit ran your tests in a way where
349+
changes to global and super-global variables (<literal>$GLOBALS</literal>,
350350
<literal>$_ENV</literal>, <literal>$_POST</literal>,
351351
<literal>$_GET</literal>, <literal>$_COOKIE</literal>,
352352
<literal>$_SERVER</literal>, <literal>$_FILES</literal>,
353-
<literal>$_REQUEST</literal>) do not affect other tests. Optionally, this
354-
isolation can be extended to static attributes of classes.
353+
<literal>$_REQUEST</literal>) do not affect other tests.
354+
</para>
355+
356+
<para>
357+
As of version 6, PHPUnit does not perform this backup and restore
358+
operation for global and super-global variables by default anymore.
359+
It can be activated by using the <literal>--globals-backup</literal>
360+
option or setting <literal>backupGlobals="true"</literal> in the
361+
XML configuration file.
362+
</para>
363+
364+
<para>
365+
By using the <literal>--static-backup</literal> option or setting
366+
<literal>backupStaticAttributes="true"</literal> in the
367+
XML configuration file, this isolation can be extended to static
368+
attributes of classes.
355369
</para>
356370

357371
<note>

src/6.1/en/fixtures.xml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,27 @@ class DatabaseTest extends TestCase
345345
<indexterm><primary>Global Variable</primary></indexterm>
346346
<indexterm><primary>Test Isolation</primary></indexterm>
347347

348-
By default, PHPUnit runs your tests in a way where changes to global
349-
and super-global variables (<literal>$GLOBALS</literal>,
348+
Prior to version 6, by default, PHPUnit ran your tests in a way where
349+
changes to global and super-global variables (<literal>$GLOBALS</literal>,
350350
<literal>$_ENV</literal>, <literal>$_POST</literal>,
351351
<literal>$_GET</literal>, <literal>$_COOKIE</literal>,
352352
<literal>$_SERVER</literal>, <literal>$_FILES</literal>,
353-
<literal>$_REQUEST</literal>) do not affect other tests. Optionally, this
354-
isolation can be extended to static attributes of classes.
353+
<literal>$_REQUEST</literal>) do not affect other tests.
354+
</para>
355+
356+
<para>
357+
As of version 6, PHPUnit does not perform this backup and restore
358+
operation for global and super-global variables by default anymore.
359+
It can be activated by using the <literal>--globals-backup</literal>
360+
option or setting <literal>backupGlobals="true"</literal> in the
361+
XML configuration file.
362+
</para>
363+
364+
<para>
365+
By using the <literal>--static-backup</literal> option or setting
366+
<literal>backupStaticAttributes="true"</literal> in the
367+
XML configuration file, this isolation can be extended to static
368+
attributes of classes.
355369
</para>
356370

357371
<note>

src/6.2/en/fixtures.xml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,27 @@ class DatabaseTest extends TestCase
345345
<indexterm><primary>Global Variable</primary></indexterm>
346346
<indexterm><primary>Test Isolation</primary></indexterm>
347347

348-
By default, PHPUnit runs your tests in a way where changes to global
349-
and super-global variables (<literal>$GLOBALS</literal>,
348+
Prior to version 6, by default, PHPUnit ran your tests in a way where
349+
changes to global and super-global variables (<literal>$GLOBALS</literal>,
350350
<literal>$_ENV</literal>, <literal>$_POST</literal>,
351351
<literal>$_GET</literal>, <literal>$_COOKIE</literal>,
352352
<literal>$_SERVER</literal>, <literal>$_FILES</literal>,
353-
<literal>$_REQUEST</literal>) do not affect other tests. Optionally, this
354-
isolation can be extended to static attributes of classes.
353+
<literal>$_REQUEST</literal>) do not affect other tests.
354+
</para>
355+
356+
<para>
357+
As of version 6, PHPUnit does not perform this backup and restore
358+
operation for global and super-global variables by default anymore.
359+
It can be activated by using the <literal>--globals-backup</literal>
360+
option or setting <literal>backupGlobals="true"</literal> in the
361+
XML configuration file.
362+
</para>
363+
364+
<para>
365+
By using the <literal>--static-backup</literal> option or setting
366+
<literal>backupStaticAttributes="true"</literal> in the
367+
XML configuration file, this isolation can be extended to static
368+
attributes of classes.
355369
</para>
356370

357371
<note>

src/6.3/en/fixtures.xml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,27 @@ class DatabaseTest extends TestCase
345345
<indexterm><primary>Global Variable</primary></indexterm>
346346
<indexterm><primary>Test Isolation</primary></indexterm>
347347

348-
By default, PHPUnit runs your tests in a way where changes to global
349-
and super-global variables (<literal>$GLOBALS</literal>,
348+
Prior to version 6, by default, PHPUnit ran your tests in a way where
349+
changes to global and super-global variables (<literal>$GLOBALS</literal>,
350350
<literal>$_ENV</literal>, <literal>$_POST</literal>,
351351
<literal>$_GET</literal>, <literal>$_COOKIE</literal>,
352352
<literal>$_SERVER</literal>, <literal>$_FILES</literal>,
353-
<literal>$_REQUEST</literal>) do not affect other tests. Optionally, this
354-
isolation can be extended to static attributes of classes.
353+
<literal>$_REQUEST</literal>) do not affect other tests.
354+
</para>
355+
356+
<para>
357+
As of version 6, PHPUnit does not perform this backup and restore
358+
operation for global and super-global variables by default anymore.
359+
It can be activated by using the <literal>--globals-backup</literal>
360+
option or setting <literal>backupGlobals="true"</literal> in the
361+
XML configuration file.
362+
</para>
363+
364+
<para>
365+
By using the <literal>--static-backup</literal> option or setting
366+
<literal>backupStaticAttributes="true"</literal> in the
367+
XML configuration file, this isolation can be extended to static
368+
attributes of classes.
355369
</para>
356370

357371
<note>

0 commit comments

Comments
 (0)