Skip to content

Commit

Permalink
chore: Add PATH_SYMBOLIC constant to Pest.php
Browse files Browse the repository at this point in the history
The `PATH_SYMBOLIC` constant was added to the `Pest.php` file. This constant represents the symbolic path to the output data directory.
  • Loading branch information
ewilan-riviere committed May 30, 2024
1 parent 015deb1 commit 35b7710
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/FileListSymbolicTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

use Kiwilan\FileList\FileList;

it('can list files', function () {
if (linkinfo(PATH_SYMBOLIC) === -1) {
symlink(__DIR__.'/data', __DIR__.'/output/data');
}
$list = FileList::make(PATH_SYMBOLIC)->run();

expect($list->getFiles())->toHaveCount(7);
});
1 change: 1 addition & 0 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

define('PATH_TO_SCAN', __DIR__.'/data');
define('PATH_TO_OUTPUT', __DIR__.'/output');
define('PATH_SYMBOLIC', __DIR__.'/output/data');

0 comments on commit 35b7710

Please sign in to comment.