<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 30, 2013 at 9:14 AM, Ayush Chaudhary <span dir="ltr"><<a href="mailto:ayushchd@gmail.com" target="_blank">ayushchd@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                <div>Hi,</div><div><div class="h5">
                 
                <p style="color:rgb(160,160,168)">On Wednesday, 29 May 2013 at 11:51 PM, Madhura Jayaratne wrote:</p>
                </div></div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px">
                    <span><div><div class="h5"><div dir="ltr">Hi all,<div><br></div><div>At the test suit level, backupGlobals directive is set to false preventing PHPUnit from backing up and restoring globals for every test. I was wondering why this is set like that.<br clear="all">

<div><br></div></div></div></div></div></span></blockquote><div>Different tests have or need different global settings. So I think this is to prevent the global settings of different tests from interfering with each other.
                </div><div><br></div><div>Thanks,</div><div>Ayush</div>
            <br></blockquote><div style>If I understand correctly, when backupGlobals is set to true, before each test globals are backed up and restored after test execution. So any changes done to globals by the test do not propagate to the next test. Ideally each test should setup variables required for it and should not depend on other tests to set up variable values.</div>
</div><br clear="all"><div>-- <br></div>Thanks and Regards,<div><br></div><div>Madhura Jayaratne<br><div><br></div></div>
</div></div>