Skip to content

Commit

Permalink
Fix files attaching (via #95)
Browse files Browse the repository at this point in the history
  • Loading branch information
nixdrey authored May 5, 2022
1 parent 96963b8 commit c812ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Internal/TestLifecycle.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function attachReports(): self
if (!is_string($artifact)) {
continue;
}
$dataSource = @file_exists($artifact) && !is_file($artifact)
$dataSource = @file_exists($artifact) && is_file($artifact)
? DataSourceFactory::fromFile($artifact)
: DataSourceFactory::fromString($artifact);
$this
Expand Down

0 comments on commit c812ab3

Please sign in to comment.