AssetManagerTest\Service\AliasPathStackResolverTest::testAddAliasFailsWithBadKey PHP Method

testAddAliasFailsWithBadKey() public method

Test addAlias fails with bad key
    public function testAddAliasFailsWithBadKey()
    {
        $resolver = new AliasPathStackResolver(array());
        $reflectionClass = new \ReflectionClass(\AssetManager\Resolver\AliasPathStackResolver::class);
        $addAlias = $reflectionClass->getMethod('addAlias');
        $addAlias->setAccessible(true);
        $property = $reflectionClass->getProperty('aliases');
        $property->setAccessible(true);
        $addAlias->invoke($resolver, null, 'path');
    }