Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Commit

Permalink
DateTime to DateTimeImmutable
Browse files Browse the repository at this point in the history
  • Loading branch information
holyshared committed Dec 4, 2015
1 parent 5a8827a commit bd8c9aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/reporter/MarkdownReporter.spec.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
$this->source2 = $fixturePath . '/Example2.php';
$this->markdownReport = $fixturePath . '/report.md';

$this->startDateTime = DateTime::createFromFormat('Y-m-d H:i:s', '2014-07-10 00:00:00');
$this->startDateTime = DateTimeImmutable::createFromFormat('Y-m-d H:i:s', '2014-07-10 00:00:00');

$coverageResults = [
$this->source1 => [
Expand Down
5 changes: 2 additions & 3 deletions spec/reporter/ProcessingTimeReporter.spec.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
use Zend\Console\Console;
use Zend\Console\ColorInterface as Color;


describe(ProcessingTimeReporter::class, function() {

describe('onStart', function() {
beforeEach(function() {
$this->reporter = new ProcessingTimeReporter();

$this->dateTime = DateTime::createFromFormat('Y-m-d H:i:s', '2014-07-01 12:00:00');
$this->dateTime = DateTimeImmutable::createFromFormat('Y-m-d H:i:s', '2014-07-01 12:00:00');
$this->startEvent = new AnalyzeStartEvent($this->dateTime);

$console = Console::getInstance();
Expand All @@ -43,7 +42,7 @@
beforeEach(function() {
$this->reporter = new ProcessingTimeReporter();

$this->dateTime = DateTime::createFromFormat('Y-m-d H:i:s', '2014-07-01 12:00:00');
$this->dateTime = DateTimeImmutable::createFromFormat('Y-m-d H:i:s', '2014-07-01 12:00:00');
$this->startEvent = new AnalyzeStartEvent();

$analyzeResult = AnalyzedResult::fromArray([]);
Expand Down

0 comments on commit bd8c9aa

Please sign in to comment.