public function testGetDiffMessageThrowsAnExceptionIfTheDiffUnitIsNotSupported() { $this->setExpectedException('InvalidArgumentException'); $this->formatter->getDiffMessage(1, true, 'patate'); }