/** * @param string $timeString * @dataProvider dataProviderTime */ public function testFormatDateTime($timeString) { $time = new \DateTime($timeString); $this->localeDate->expects($this->any())->method('formatDateTime')->with($time, \IntlDateFormatter::MEDIUM, \IntlDateFormatter::MEDIUM)->willReturn($time); $this->assertEquals($time, $this->block->formatDateTime($timeString)); }