PHP Class AssetManagerTest\Service\AliasPathStackResolverTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: rwoverdijk/assetmanager

Public Methods

Method Description
testAddAlias ( ) Test add alias method.
testAddAliasFailsWithBadKey ( ) Test addAlias fails with bad key
testAddAliasFailsWithBadPath ( ) Test addAlias fails with bad Path
testCollect ( ) Test Collect returns valid list of assets
testCollectDirectory ( ) Test Collect returns valid list of assets
testConstructor ( ) Test constructor passes
testConstructorFail ( ) Test constructor fails when aliases passed in is not an array
testGetAndSetMimeResolver ( ) Test Set Mime Resolver Only Accepts a mime Resolver
testGetAndSetOfLfiProtectionFlag ( ) Test Get and Set of Lfi Protection Flag
testLfiProtection ( ) Test Lfi Protection
testLfiProtectionFlagDefaultsTrue ( ) Test Lfi Protection Flag Defaults to true
testNormalizePath ( ) Test normalize path
testResolve ( ) Test Resolve returns valid asset
testResolveWhenAliasExistsInPath ( )
testResolveWhenAliasStringDoesnotContainTrailingSlash ( ) Test Resolve returns valid asset
testSetMimeResolverFailObject ( ) Test Set Mime Resolver Only Accepts a mime Resolver
testWillNotResolveDirectories ( ) Test that resolver will not resolve directories

Method Details

testAddAlias() public method

Test add alias method.
public testAddAlias ( )

testAddAliasFailsWithBadKey() public method

Test addAlias fails with bad key

testAddAliasFailsWithBadPath() public method

Test addAlias fails with bad Path

testCollect() public method

Test Collect returns valid list of assets
public testCollect ( )

testCollectDirectory() public method

Test Collect returns valid list of assets

testConstructor() public method

Test constructor passes
public testConstructor ( )

testConstructorFail() public method

Test constructor fails when aliases passed in is not an array
public testConstructorFail ( )

testGetAndSetMimeResolver() public method

Test Set Mime Resolver Only Accepts a mime Resolver

testGetAndSetOfLfiProtectionFlag() public method

Test Get and Set of Lfi Protection Flag

testLfiProtection() public method

Test Lfi Protection
public testLfiProtection ( )

testLfiProtectionFlagDefaultsTrue() public method

Test Lfi Protection Flag Defaults to true

testNormalizePath() public method

Test normalize path
public testNormalizePath ( )

testResolve() public method

Test Resolve returns valid asset
public testResolve ( )

testResolveWhenAliasExistsInPath() public method

testResolveWhenAliasStringDoesnotContainTrailingSlash() public method

Test Resolve returns valid asset

testSetMimeResolverFailObject() public method

Test Set Mime Resolver Only Accepts a mime Resolver

testWillNotResolveDirectories() public method

Test that resolver will not resolve directories