Skip to content

Commit

Permalink
- Merge [3732].
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 4, 2008
1 parent 738e7ca commit 96475ef
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions PHPUnit/Util/Template.php
Expand Up @@ -98,13 +98,15 @@ public function setFile($file)
{
$distFile = $file . '.dist';

if (file_exists($distFile)) {
$file = $distFile;
}

if (file_exists($file)) {
$this->template = file_get_contents($file);
} else {
}

else if (file_exists($distFile)) {
$this->template = file_get_contents($distFile);
}

else {
throw new InvalidArgumentException(
'Template file could not be loaded.'
);
Expand Down

0 comments on commit 96475ef

Please sign in to comment.