/** * @dataProvider alignToSecondsDataProvider **/ public function testAlignToSeconds(Timestamp $stamp, $expected) { $this->assertEquals(DateUtils::alignToSeconds($stamp, 42)->toString(), $expected); }