Add a couple of comments from my WC
authorPlatonides <platonides@users.mediawiki.org>
Fri, 24 Dec 2010 12:08:47 +0000 (12:08 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Fri, 24 Dec 2010 12:08:47 +0000 (12:08 +0000)
tests/phpunit/includes/GlobalTest.php

index d9116dc..599002e 100644 (file)
@@ -43,13 +43,13 @@ class GlobalTest extends PHPUnit_Framework_TestCase {
                $f = fopen( $wgReadOnlyFile, "wt" );
                fwrite( $f, 'Message' );
                fclose( $f );
-               $wgReadOnly = null;
+               $wgReadOnly = null; # Check on $wgReadOnlyFile
 
                $this->assertTrue( wfReadOnly() );
-               $this->assertTrue( wfReadOnly() );
+               $this->assertTrue( wfReadOnly() ); # Check cached
 
                unlink( $wgReadOnlyFile );
-               $wgReadOnly = null;
+               $wgReadOnly = null; # Clean cache
 
                $this->assertFalse( wfReadOnly() );
                $this->assertFalse( wfReadOnly() );