mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
ALl hiden files are skipped from the test dir
.DS_Store is a platform-specific file for Mac OS. It would be better to skip all hidden files (which start with a dot). On Windows however hidden files are marked by a file attribute, so this is actually only valid on Unix.
This commit is contained in:
parent
7b091b8915
commit
1530254ddc
@ -6,7 +6,7 @@ $failed_test_count = 0;
|
|||||||
|
|
||||||
foreach ($DirectoryIterator as $Item)
|
foreach ($DirectoryIterator as $Item)
|
||||||
{
|
{
|
||||||
if ($Item->isFile() and $Item->getBasename() != '.DS_Store')
|
if ($Item->isFile() and strpos($Item->getBasename(), '.') !== 0)
|
||||||
{
|
{
|
||||||
if ($Item->getExtension() === 'md')
|
if ($Item->getExtension() === 'md')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user