Skip to content

Commit

Permalink
Return success bool
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Aug 4, 2014
1 parent ea6d5cf commit 726ebe0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Unit/Cli/Gateway.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function testServeDynamicFile($uri) {
$output = Gateway::serve($uri, "\StdClass");

if("html" === pathinfo($uri, PATHINFO_EXTENSION)) {

}

$this->assertInstanceOf("\StdClass", $output);
Expand Down Expand Up @@ -127,8 +127,8 @@ private static function cleanup($dirPath) {
? rmdir($path->getPathname())
: unlink($path->getPathname());
}
rmdir($dirPath);

return rmdir($dirPath);
}

/**
Expand All @@ -145,7 +145,7 @@ private function getTempFilePath($uri, $skipCreating = false) {
if(!is_dir(dirname($path)) ) {
mkdir(dirname($path), 0775, true);
}
file_put_contents($path, self::DUMMY_CONTENT . " (from $uri).");
file_put_contents($path, self::DUMMY_CONTENT . " (from $uri).");
}

return $path;
Expand Down

0 comments on commit 726ebe0

Please sign in to comment.