/** * @dataProvider monthsDeltaProvider * * @covers ::getCalMonthDelta * * @param string $givenDate * @param int $monthDelta * @param int $expMonth * @param string $expDate Not used in this test. */ public function test_getMonthDelta($givenDate, $monthDelta, $expMonth, $expDate) { // Given $dt = new DateTime($givenDate); // When $got = $dt->getCalMonthDelta($monthDelta); // Then $this->assertSame($expMonth, $got); $this->assertSame('00:00:00', $dt->format('H:i:s')); }