Skip to content

Commit 23558bd

Browse files
committed
Fixed: Missing '/' in manual set report path
When using the '-r' option, eg `-r="/foo/bar"` the report was not saved to that location. Instead all reports were saved in `/foo` prefixed with `bar`: `Report located at: /foo/bar2015-12-08 ...` This pull request fixes this issue. Reports are now saved to `/foo/bar/2015-...`
1 parent e0f5bde commit 23558bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

classes/reporter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ public function __construct($projectPath, $reportFolder = null) {
7373
if ($reportFolder !== false) {
7474
$this->reportFolder = $reportFolder;
7575
} else {
76-
$this->reportFolder = PHP7MAR_DIR.DIRECTORY_SEPARATOR.'reports'.DIRECTORY_SEPARATOR;
76+
$this->reportFolder = PHP7MAR_DIR.DIRECTORY_SEPARATOR.'reports';
7777
}
78-
$this->fullFilePath = $this->reportFolder.date('Y-m-d H.i.s ').basename($this->projectPath, '.php').".md";
78+
$this->fullFilePath = $this->reportFolder.DIRECTORY_SEPARATOR.date('Y-m-d H.i.s ').basename($this->projectPath, '.php').".md";
7979

8080
$this->file = fopen($this->fullFilePath, 'w+');
8181
register_shutdown_function([$this, 'onShutdown']);
@@ -161,4 +161,4 @@ public function onShutdown() {
161161
fclose($this->file);
162162
}
163163
}
164-
?>
164+
?>

0 commit comments

Comments
 (0)