Skip to content

Commit 0d3dcd8

Browse files
committed
rever deprecated phpunit
1 parent 968265d commit 0d3dcd8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/Commands/RotateFileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ public function itCanRotateFileMax()
8080
$this->assertFileExists($file.'.'.$n.'.gz');
8181
}
8282

83-
$this->assertFileDoesNotExist($file.basename($file).'.4.gz');
83+
$this->assertFileNotExists($file.basename($file).'.4.gz');
8484
}
8585
}

tests/Handlers/RotativeHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ public function testItCanRotateLogsWithMaxfiles()
7171
$this->assertFileExists(app()->storagePath().'/logs/laravel.log.3.gz');
7272
$this->assertFileExists(app()->storagePath().'/logs/laravel.log.4.gz');
7373
$this->assertFileExists(app()->storagePath().'/logs/laravel.log.5.gz');
74-
$this->assertFileDoesNotExist(app()->storagePath().'/logs/laravel.log.6.gz');
74+
$this->assertFileNotExists(app()->storagePath().'/logs/laravel.log.6.gz');
7575
}
7676
}

tests/RotateTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function testNoRotateIfFileLogsNotExits()
1818
Event::assertDispatched(RotateIsNotNecessary::class, 1);
1919

2020
$this->assertEquals($resultCode, 0);
21-
$this->assertFileDoesNotExist(app()->storagePath().'/logs/laravel.log.1.gz');
21+
$this->assertFileNotExists(app()->storagePath().'/logs/laravel.log.1.gz');
2222
}
2323

2424
public function testNoRotateIfFileLogsIsEmpty()
@@ -30,7 +30,7 @@ public function testNoRotateIfFileLogsIsEmpty()
3030
Event::assertDispatched(RotateIsNotNecessary::class, 1);
3131

3232
$this->assertEquals($resultCode, 0);
33-
$this->assertFileDoesNotExist(app()->storagePath().'/logs/laravel.log.1.gz');
33+
$this->assertFileNotExists(app()->storagePath().'/logs/laravel.log.1.gz');
3434
}
3535

3636
public function testItCanRotateLogsInArchiveDir()
@@ -96,7 +96,7 @@ public function testItNotRotateLogsDaily()
9696
$this->assertEquals($resultCode, 0);
9797

9898
foreach ($files as $file) {
99-
$this->assertFileDoesNotExist($file.'.1.gz');
99+
$this->assertFileNotExists($file.'.1.gz');
100100
}
101101
}
102102

0 commit comments

Comments
 (0)