PHP Class lithium\tests\cases\core\LibrariesTest

Inheritance: extends lithium\test\Unit
Datei anzeigen Open project: unionofrad/lithium

Protected Properties

Property Type Description
$_cache

Public Methods

Method Description
setUp ( )
tearDown ( )
testAddInvalidLibrary ( ) Tests that an exception is thrown when a library is added which could not be found.
testAddNonPrefixedLibrary ( ) Tests that non-prefixed (poorly named or structured) libraries can still be added.
testCacheControl ( )
testCaseSensitivePathLookups ( )
testClassInstanceWithSubnamespace ( )
testDeprectatedInit ( )
testExcludeNonClassFiles ( ) Tests that non-class files are always filtered out of find() results unless an alternate filter is specified.
testFindWithOptions ( )
testFindingClasses ( ) Tests recursive and non-recursive searching through libraries with paths.
testFindingClassesAndNamespaces ( )
testFindingClassesWithCallableExcludes ( )
testFindingClassesWithCallableFilters ( )
testFindingClassesWithExclude ( )
testLibraryAddRemove ( ) Tests the addition and removal of default libraries.
testLibraryConfigAccess ( ) Tests accessing library configurations.
testLibraryLoad ( ) Tests the loading of libraries
testLibraryNameConfigAccess ( )
testLocateCommandInLithium ( )
testLocateCommandInLithiumRecursiveTrue ( )
testLocateWithDotSyntax ( )
testLocateWithLibrary ( )
testLocateWithLithiumLibrary ( )
testLocateWithTestAppLibrary ( )
testMapUnmap ( ) Tests that Libraries::map() and Libraries::unmap()
testNamespaceToFileTranslation ( )
testPathCaching ( ) Tests path caching by calling path() twice.
testPathDirectoryLookups ( )
testPathFiltering ( )
testPathTemplate ( )
testPathTemplateWithGlobBrace ( )
testPathTransform ( )
testPathsInPharArchives ( ) Tests that Libraries::realPath() correctly resolves paths to files inside Phar archives.
testSearchOptimizedNamespacesWithOnlyDir ( )
testServiceLocateAll ( )
testServiceLocateAllCommands ( )
testServiceLocateApp ( )
testServiceLocateCommand ( )
testServiceLocateInstantiation ( )
testServiceLocation ( ) Tests locating service objects. These tests may fail if not run on a stock install, as other objects may preceed the core objects in load order.

Method Details

setUp() public method

public setUp ( )

tearDown() public method

public tearDown ( )

testAddInvalidLibrary() public method

Tests that an exception is thrown when a library is added which could not be found.

testAddNonPrefixedLibrary() public method

Tests that non-prefixed (poorly named or structured) libraries can still be added.

testCacheControl() public method

public testCacheControl ( )

testCaseSensitivePathLookups() public method

testClassInstanceWithSubnamespace() public method

testDeprectatedInit() public method

Deprecation:
public testDeprectatedInit ( )

testExcludeNonClassFiles() public method

Tests that non-class files are always filtered out of find() results unless an alternate filter is specified.

testFindWithOptions() public method

public testFindWithOptions ( )

testFindingClasses() public method

Tests recursive and non-recursive searching through libraries with paths.
public testFindingClasses ( )

testFindingClassesAndNamespaces() public method

testFindingClassesWithCallableExcludes() public method

testFindingClassesWithCallableFilters() public method

testFindingClassesWithExclude() public method

testLibraryAddRemove() public method

Tests the addition and removal of default libraries.

testLibraryConfigAccess() public method

Tests accessing library configurations.

testLibraryLoad() public method

Tests the loading of libraries
public testLibraryLoad ( )

testLibraryNameConfigAccess() public method

testLocateCommandInLithium() public method

testLocateCommandInLithiumRecursiveTrue() public method

testLocateWithDotSyntax() public method

testLocateWithLibrary() public method

testLocateWithLithiumLibrary() public method

testLocateWithTestAppLibrary() public method

testMapUnmap() public method

Tests that Libraries::map() and Libraries::unmap()
public testMapUnmap ( )

testNamespaceToFileTranslation() public method

testPathCaching() public method

Tests path caching by calling path() twice.
public testPathCaching ( )

testPathDirectoryLookups() public method

testPathFiltering() public method

public testPathFiltering ( )

testPathTemplate() public method

public testPathTemplate ( )

testPathTemplateWithGlobBrace() public method

Deprecation:

testPathTransform() public method

public testPathTransform ( )

testPathsInPharArchives() public method

Tests that Libraries::realPath() correctly resolves paths to files inside Phar archives.

testSearchOptimizedNamespacesWithOnlyDir() public method

testServiceLocateAll() public method

testServiceLocateAllCommands() public method

testServiceLocateApp() public method

testServiceLocateCommand() public method

testServiceLocateInstantiation() public method

testServiceLocation() public method

Tests locating service objects. These tests may fail if not run on a stock install, as other objects may preceed the core objects in load order.
public testServiceLocation ( )

Property Details

$_cache protected_oe property

protected $_cache