Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #43 from pfrenssen/file-exists-wildcard
Browse files Browse the repository at this point in the history
Allow to return the real path of folders containing wildcards.
  • Loading branch information
padraic committed Jan 18, 2015
2 parents 3935141 + 62587b9 commit 0898315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Humbug/Adapter/Phpunit/XmlConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private static function makeAbsolutePath($name, $workingDir)
}

$relativePath = $workingDir.DIRECTORY_SEPARATOR.$name;
if (file_exists($relativePath)) {
if (file_exists($relativePath) || !empty(glob($relativePath))) {
return realpath($relativePath);
}

Expand Down

0 comments on commit 0898315

Please sign in to comment.