Index: trunk/phase3/tests/phpunit/includes/GlobalTest.php |
— | — | @@ -43,13 +43,13 @@ |
44 | 44 | $f = fopen( $wgReadOnlyFile, "wt" ); |
45 | 45 | fwrite( $f, 'Message' ); |
46 | 46 | fclose( $f ); |
47 | | - $wgReadOnly = null; |
| 47 | + $wgReadOnly = null; # Check on $wgReadOnlyFile |
48 | 48 | |
49 | 49 | $this->assertTrue( wfReadOnly() ); |
50 | | - $this->assertTrue( wfReadOnly() ); |
| 50 | + $this->assertTrue( wfReadOnly() ); # Check cached |
51 | 51 | |
52 | 52 | unlink( $wgReadOnlyFile ); |
53 | | - $wgReadOnly = null; |
| 53 | + $wgReadOnly = null; # Clean cache |
54 | 54 | |
55 | 55 | $this->assertFalse( wfReadOnly() ); |
56 | 56 | $this->assertFalse( wfReadOnly() ); |