PHP 클래스 PhpSpec\Locator\PSR0\PSR0Locator

상속: implements PhpSpec\Locator\ResourceLocatorInterface
파일 보기 프로젝트 열기: phpspec/phpspec 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Filesystem $filesystem, string $srcNamespace = '', string $specNamespacePrefix = 'spec', string $srcPath = 'src', string $specPath = '.', string $psr4Prefix = null )
createResource ( string $classname ) : null | PSR0Resource
findResources ( string $query ) : Resource[]
getAllResources ( ) : Resource[]
getFullSpecPath ( ) : string
getFullSrcPath ( ) : string
getPriority ( ) : integer
getSpecNamespace ( ) : string
getSrcNamespace ( ) : string
isPSR4 ( ) : boolean
supportsClass ( string $classname ) : boolean
supportsQuery ( string $query ) : boolean

보호된 메소드들

메소드 설명
findSpecResources ( string $path ) : PSR0Resource[]

비공개 메소드들

메소드 설명
createResourceFromSpecFile ( string $path ) : PSR0Resource
findSpecClassname ( $path ) : null | string
getQueryPath ( string $query ) : string
isWindowsPath ( string $query ) : boolean
queryContainsBlackslashes ( string $query ) : boolean
queryContainsQualifiedClassName ( string $query ) : boolean
validatePsr0Classname ( string $classname )

메소드 상세

__construct() 공개 메소드

public __construct ( Filesystem $filesystem, string $srcNamespace = '', string $specNamespacePrefix = 'spec', string $srcPath = 'src', string $specPath = '.', string $psr4Prefix = null )
$filesystem PhpSpec\Util\Filesystem
$srcNamespace string
$specNamespacePrefix string
$srcPath string
$specPath string
$psr4Prefix string

createResource() 공개 메소드

public createResource ( string $classname ) : null | PSR0Resource
$classname string
리턴 null | PSR0Resource

findResources() 공개 메소드

public findResources ( string $query ) : Resource[]
$query string
리턴 Resource[]

findSpecResources() 보호된 메소드

protected findSpecResources ( string $path ) : PSR0Resource[]
$path string
리턴 PSR0Resource[]

getAllResources() 공개 메소드

public getAllResources ( ) : Resource[]
리턴 Resource[]

getFullSpecPath() 공개 메소드

public getFullSpecPath ( ) : string
리턴 string

getFullSrcPath() 공개 메소드

public getFullSrcPath ( ) : string
리턴 string

getPriority() 공개 메소드

public getPriority ( ) : integer
리턴 integer

getSpecNamespace() 공개 메소드

public getSpecNamespace ( ) : string
리턴 string

getSrcNamespace() 공개 메소드

public getSrcNamespace ( ) : string
리턴 string

isPSR4() 공개 메소드

public isPSR4 ( ) : boolean
리턴 boolean

supportsClass() 공개 메소드

public supportsClass ( string $classname ) : boolean
$classname string
리턴 boolean

supportsQuery() 공개 메소드

public supportsQuery ( string $query ) : boolean
$query string
리턴 boolean