Skip to content

Commit

Permalink
Create failures directory
Browse files Browse the repository at this point in the history
  • Loading branch information
phpfui authored and edgrosvenor committed Jan 6, 2023
1 parent dfa4c7b commit 395094e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Html2TextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Html2TextTest extends \PHPUnit\Framework\TestCase {
// delete all failures before we run
public static function setUpBeforeClass(): void {
foreach (new DirectoryIterator(__DIR__ . '/failures') as $fileInfo) {
if(!$fileInfo->isDot()) {
if ($fileInfo->getFileName()[0] != '.') {
unlink($fileInfo->getPathname());
}
}
Expand Down
8 changes: 8 additions & 0 deletions tests/failures/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Ignore everything
*

# But not these files...
!.gitignore

# ...even if they are in subdirectories
!*/

0 comments on commit 395094e

Please sign in to comment.