Merge pull request #2 from werkraum-media/bugfix/tests-ci

Fix broken tests
This commit is contained in:
Daniel Siepmann 2020-11-30 12:59:44 +01:00 committed by GitHub
commit 21686dcc8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,19 @@ class DayTest extends TestCase
);
self::assertInstanceOf(\DateTimeImmutable::class, $subject->getDateTimeInstance());
self::assertSame($dateTimeInstance->format('U'), $subject->getDateTimeInstance()->format('U'));
}
/**
* @test
*/
public function providedDateTimeInstanceHasExpectedDay(): void
{
$dateTimeInstance = new \DateTime();
$subject = new Day(
$dateTimeInstance
);
self::assertSame($dateTimeInstance->format('d.m.Y'), $subject->getDateTimeInstance()->format('d.m.Y'));
}
/**