Knp\Bundle\TimeBundle\DateTimeFormatterTest::testGetDiffMessageThrowsAnExceptionIfTheDiffUnitIsNotSupported PHP 메소드

testGetDiffMessageThrowsAnExceptionIfTheDiffUnitIsNotSupported() 공개 메소드

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