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

testGetDiffMessageThrowsAnExceptionIfTheDiffIsEmpty() 공개 메소드

    public function testGetDiffMessageThrowsAnExceptionIfTheDiffIsEmpty()
    {
        $this->setExpectedException('InvalidArgumentException');
        $this->formatter->getDiffMessage(0, true, 'day');
    }