Skip to content

Commit db6c296

Browse files
committed
Echo location of the report when finished.
1 parent 1b06a2f commit db6c296

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ Or:
2929

3030
This would run against the example file or folder and save the resulting report into a reports folder inside the php7mar folder. When referencing the file or folder to run against it is recommend to use a fully qualified path. Relative paths are supported, but will be relative to the location of the php7mar folder.
3131

32+
Give a try, use the included `testcases.php` to generate a report:
33+
34+
php mar.php -f="testcases.php"
35+
3236
##Available Options:
3337
**-f**
3438
```

classes/reporter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ public function addSections() {
152152
}
153153

154154
/**
155-
* Return the current contents of the buffer.
155+
* Return the file path of the report.
156156
*
157157
* @access public
158-
* @return array Array of lines
158+
* @return string File Path
159159
*/
160-
public function getBuffer() {
161-
return $this->buffer;
160+
public function getReportFilePath() {
161+
return $this->fullFilePath;
162162
}
163163

164164
/**

mar.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public function __construct() {
8585
$this->reporter->add("Processing took {$runTime} seconds.", 0, 1);
8686

8787
$this->reporter->addSections();
88+
89+
echo "Report located at: ".$this->reporter->getReportFilePath()."\n";
8890
}
8991

9092
/**

0 commit comments

Comments
 (0)