/** * @test * @dataProvider dates * @param string $currentDate * @param string $date * @param string $expectedKey * @param array $expectedParams */ public function shouldCreateTimeAgo($currentDate, $date, $expectedKey, $expectedParams) { //given Clock::freeze($currentDate); //when $timeAgo = TimeAgo::create($date); //then $this->assertEquals($expectedKey, $timeAgo->getKey()); $this->assertEquals($expectedParams, $timeAgo->getParams()); }