Knp\Bundle\TimeBundle\DateTimeFormatterTest::testGetDiffMessageThrowsAnExceptionIfTheDiffUnitIsNotSupported PHP Метод

testGetDiffMessageThrowsAnExceptionIfTheDiffUnitIsNotSupported() публичный Метод

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