@@ -73,11 +73,11 @@ private function checkChangeLogAfterExternalEdit(
7373 $ expectedCurrentEntry += $ currentRevInfo ;
7474 if ($ expectedRevs > 0 ) {
7575 $ this ->assertEquals ($ expectedCurrentEntry , $ currentRevInfo );
76-
76+
7777 }
7878 // attic
7979 $ attic = wikiFN ($ currentRevInfo ['id ' ], $ currentRevInfo ['date ' ]);
80- $ this ->assertFileNotExists ($ attic , 'page does not yet exist in attic ' );
80+ $ this ->assertFileDoesNotExist ($ attic , 'page does not yet exist in attic ' );
8181 }
8282
8383
@@ -99,7 +99,7 @@ function test_savesequence1() {
9999
100100 $ page = 'page ' ;
101101 $ file = wikiFN ($ page );
102- $ this ->assertFileNotExists ($ file );
102+ $ this ->assertFileDoesNotExist ($ file );
103103
104104 // 1.1 create a page
105105 saveWikiText ($ page , 'teststring ' , '1st save ' , false );
@@ -190,7 +190,7 @@ function test_savesequence1() {
190190 // 1.6 delete
191191 saveWikiText ($ page , '' , '6th save ' , false );
192192 clearstatcache (false , $ file );
193- $ this ->assertFileNotExists ($ file );
193+ $ this ->assertFileDoesNotExist ($ file );
194194 $ expectedRevs = 5 ;
195195 $ expect = array (
196196 //'date' => $lastmod, // ignore from lastRev assertion, but confirm attic file existence
@@ -283,7 +283,7 @@ function test_savesequence2() {
283283
284284 $ page = 'page2 ' ;
285285 $ file = wikiFN ($ page );
286- $ this ->assertFileNotExists ($ file );
286+ $ this ->assertFileDoesNotExist ($ file );
287287
288288 // 2.1 create a page
289289 saveWikiText ($ page , 'teststring ' , 'Test 2, 1st save ' , false );
@@ -306,7 +306,7 @@ function test_savesequence2() {
306306 // 2.2 delete
307307 saveWikiText ($ page , '' , 'Test 2, 2nd save ' , false );
308308 clearstatcache (false , $ file );
309- $ this ->assertFileNotExists ($ file );
309+ $ this ->assertFileDoesNotExist ($ file );
310310 $ expectedRevs = 2 ;
311311 $ expect = array (
312312 //'date' => $lastmod, // ignore from lastRev assertion, but confirm attic file existence
@@ -406,7 +406,7 @@ function test_savesequence3() {
406406 $ file = wikiFN ($ page );
407407
408408 // 3.1 externally create a page
409- $ this ->assertFileNotExists ($ file );
409+ $ this ->assertFileDoesNotExist ($ file );
410410 file_put_contents ($ file , 'teststring ' );
411411 clearstatcache (false , $ file );
412412 $ lastmod = filemtime ($ file );
@@ -488,7 +488,7 @@ function test_savesequence4() {
488488 $ file = wikiFN ($ page );
489489
490490 // 4.1 externally create a page
491- $ this ->assertFileNotExists ($ file );
491+ $ this ->assertFileDoesNotExist ($ file );
492492 file_put_contents ($ file , 'teststring ' );
493493 clearstatcache (false , $ file );
494494 $ lastmod = filemtime ($ file );
@@ -527,7 +527,7 @@ function test_savesequence4() {
527527
528528 // 4.3 externally edit as a result of a file which has older timestamp than last revision
529529 unlink ($ file );
530- file_put_contents ($ file , 'teststring fake 1 hout past ' );
530+ file_put_contents ($ file , 'teststring fake 1 hour past ' );
531531 touch ($ file , filemtime ($ file ) -3600 ); // change file modification time to 1 hour past
532532 clearstatcache ();
533533 $ newmod = filemtime ($ file );
@@ -540,6 +540,7 @@ function test_savesequence4() {
540540 'sizechange ' => 16 ,
541541 );
542542
543+ $ this ->expectLogMessage ('current file modification time is older than last ' );
543544 $ pagelog = new PageChangeLog ($ page );
544545 $ this ->checkChangeLogAfterExternalEdit ($ pagelog , $ expectedRevs , $ expect , $ expectExternal );
545546 }
@@ -558,7 +559,7 @@ function test_savesequence4() {
558559 function test_savesequence5 () {
559560 $ page = 'page5 ' ;
560561 $ file = wikiFN ($ page );
561- $ this ->assertFileNotExists ($ file );
562+ $ this ->assertFileDoesNotExist ($ file );
562563
563564 // 5.1 create a page
564565 saveWikiText ($ page , 'teststring ' , 'Test 5, 1st save ' , false );
@@ -618,7 +619,7 @@ function test_savesequence5() {
618619 // 5.4 delete
619620 saveWikiText ($ page , '' , 'Test 5 3rd save ' , false );
620621 clearstatcache (false , $ file );
621- $ this ->assertFileNotExists ($ file );
622+ $ this ->assertFileDoesNotExist ($ file );
622623 $ expectedRevs = 4 ;
623624 $ expect = array (
624625 //'date' => $lastmod, // ignore from lastRev assertion, but confirm attic file existence
@@ -633,7 +634,7 @@ function test_savesequence5() {
633634 $ this ->waitForTick (); // wait for new revision ID
634635
635636 // 5.5 create a page, second time
636- $ this ->assertFileNotExists ($ file );
637+ $ this ->assertFileDoesNotExist ($ file );
637638 saveWikiText ($ page , 'teststring revived ' , 'Test 5, 4th save ' , false );
638639 $ this ->assertFileExists ($ file );
639640 $ lastmod = filemtime ($ file );
@@ -652,7 +653,7 @@ function test_savesequence5() {
652653
653654 // 5.6 externally delete
654655 unlink ($ file );
655- $ this ->assertFileNotExists ($ file );
656+ $ this ->assertFileDoesNotExist ($ file );
656657 $ expectedRevs = 5 ;
657658 $ expectExternal = array (
658659 //'date' => $lastmod,
@@ -667,7 +668,7 @@ function test_savesequence5() {
667668 $ this ->waitForTick (true ); // wait for new revision ID
668669
669670 // 5.7 create a page, third time
670- $ this ->assertFileNotExists ($ file );
671+ $ this ->assertFileDoesNotExist ($ file );
671672 saveWikiText ($ page , 'teststring revived 2 ' , 'Test 5, 5th save ' , false );
672673 clearstatcache (false , $ file );
673674 $ this ->assertFileExists ($ file );
0 commit comments