Nelmio\Alice\Throwable\Exception\InvalidArgumentExceptionFactoryTest::testTestCreateForInvalidExpressionLanguageTokenType PHP Method

testTestCreateForInvalidExpressionLanguageTokenType() public method

    public function testTestCreateForInvalidExpressionLanguageTokenType()
    {
        $exception = InvalidArgumentExceptionFactory::createForInvalidExpressionLanguageTokenType('foo');
        $this->assertEquals('Expected type to be a known token type but got "foo".', $exception->getMessage());
        $this->assertEquals(0, $exception->getCode());
        $this->assertNull($exception->getPrevious());
    }