From 0d3dcd8e012922a85dffae27118ba0c342da72ac Mon Sep 17 00:00:00 2001 From: Cesar Date: Sun, 10 Oct 2021 20:30:13 +0200 Subject: [PATCH] rever deprecated phpunit --- tests/Commands/RotateFileTest.php | 2 +- tests/Handlers/RotativeHandlerTest.php | 2 +- tests/RotateTest.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Commands/RotateFileTest.php b/tests/Commands/RotateFileTest.php index ac6746f..d00f1c0 100644 --- a/tests/Commands/RotateFileTest.php +++ b/tests/Commands/RotateFileTest.php @@ -80,6 +80,6 @@ public function itCanRotateFileMax() $this->assertFileExists($file.'.'.$n.'.gz'); } - $this->assertFileDoesNotExist($file.basename($file).'.4.gz'); + $this->assertFileNotExists($file.basename($file).'.4.gz'); } } diff --git a/tests/Handlers/RotativeHandlerTest.php b/tests/Handlers/RotativeHandlerTest.php index 7163511..bb55cc4 100644 --- a/tests/Handlers/RotativeHandlerTest.php +++ b/tests/Handlers/RotativeHandlerTest.php @@ -71,6 +71,6 @@ public function testItCanRotateLogsWithMaxfiles() $this->assertFileExists(app()->storagePath().'/logs/laravel.log.3.gz'); $this->assertFileExists(app()->storagePath().'/logs/laravel.log.4.gz'); $this->assertFileExists(app()->storagePath().'/logs/laravel.log.5.gz'); - $this->assertFileDoesNotExist(app()->storagePath().'/logs/laravel.log.6.gz'); + $this->assertFileNotExists(app()->storagePath().'/logs/laravel.log.6.gz'); } } diff --git a/tests/RotateTest.php b/tests/RotateTest.php index 1e5643c..a39f05b 100644 --- a/tests/RotateTest.php +++ b/tests/RotateTest.php @@ -18,7 +18,7 @@ public function testNoRotateIfFileLogsNotExits() Event::assertDispatched(RotateIsNotNecessary::class, 1); $this->assertEquals($resultCode, 0); - $this->assertFileDoesNotExist(app()->storagePath().'/logs/laravel.log.1.gz'); + $this->assertFileNotExists(app()->storagePath().'/logs/laravel.log.1.gz'); } public function testNoRotateIfFileLogsIsEmpty() @@ -30,7 +30,7 @@ public function testNoRotateIfFileLogsIsEmpty() Event::assertDispatched(RotateIsNotNecessary::class, 1); $this->assertEquals($resultCode, 0); - $this->assertFileDoesNotExist(app()->storagePath().'/logs/laravel.log.1.gz'); + $this->assertFileNotExists(app()->storagePath().'/logs/laravel.log.1.gz'); } public function testItCanRotateLogsInArchiveDir() @@ -96,7 +96,7 @@ public function testItNotRotateLogsDaily() $this->assertEquals($resultCode, 0); foreach ($files as $file) { - $this->assertFileDoesNotExist($file.'.1.gz'); + $this->assertFileNotExists($file.'.1.gz'); } }