Skip to content

Commit

Permalink
rever deprecated phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargb committed Oct 10, 2021
1 parent 968265d commit 0d3dcd8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/Commands/RotateFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
2 changes: 1 addition & 1 deletion tests/Handlers/RotativeHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
6 changes: 3 additions & 3 deletions tests/RotateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down Expand Up @@ -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');
}
}

Expand Down

0 comments on commit 0d3dcd8

Please sign in to comment.