Skip to content

Commit

Permalink
use filesystem->remove() instead of unlink()
Browse files Browse the repository at this point in the history
  • Loading branch information
bocharsky-bw committed Oct 30, 2024
1 parent 0649fc9 commit 77e9587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/TailwindBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ protected function setUp(): void

protected function tearDown(): void
{
$fs = new Filesystem();
$finder = new Finder();
$finder->in(__DIR__.'/fixtures/var/tailwind')->files();
foreach ($finder as $file) {
unlink($file->getRealPath());
$fs->remove($file->getRealPath());
}
$fs = new Filesystem();
try {
$fs->remove(__DIR__.'/fixtures/var/tailwind');
} catch (IOException $e) {
Expand Down

0 comments on commit 77e9587

Please sign in to comment.