Skip to content

Commit 63ea137

Browse files
author
Kendrick
committed
unit testing
1 parent 7e3bf94 commit 63ea137

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.idea/
22
composer.phar
33
vendor/
4-
phpunit.phar
4+
phpunit.phar

DataCollector/GitDataCollector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ public function collect(Request $request, Response $response, \Exception $except
8686
$dateCommit = date_create($date);
8787

8888
// actual date at runtime
89-
$dateNow = date_create((new \DateTime())->format('Y-m-d H:i:s'));
89+
$dateRuntime = date_create(new \DateTime());
90+
$dateNow = $dateRuntime->format('Y-m-d H:i:s');
9091

9192
// difference
9293
$time = date_diff($dateCommit,$dateNow);

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
<directory suffix=".php">./tests</directory>
66
</testsuite>
77
</testsuites>
8-
</phpunit>
8+
</phpunit>

0 commit comments

Comments
 (0)