Knp\Bundle\TimeBundle\DateTimeFormatterTest::testGetDiffMessageThrowsAnExceptionIfTheDiffIsEmpty PHP Method

testGetDiffMessageThrowsAnExceptionIfTheDiffIsEmpty() public method

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