PHP Класс spec\PhpSpec\Locator\PSR0\PSR0LocatorSpec

Наследование: extends PhpSpec\ObjectBehavior
Показать файл Открыть проект

Открытые методы

Метод Описание
it_creates_resource_from_backslashed_spec_class ( Filesystem $fs )
it_creates_resource_from_backslashed_src_class ( Filesystem $fs )
it_creates_resource_from_spec_class ( Filesystem $fs )
it_creates_resource_from_spec_class_with_leading_backslash ( Filesystem $fs )
it_creates_resource_from_src_class ( Filesystem $fs )
it_creates_resource_from_src_class_even_if_srcNamespace_is_empty ( Filesystem $fs )
it_does_not_support_any_other_queries ( Filesystem $fs )
it_does_not_support_anything_else ( Filesystem $fs )
it_does_not_throw_an_exception_on_no_class_definition_if_file_not_suffixed_with_spec ( Filesystem $fs, SplFileInfo $file )
it_finds_all_resources_from_tracked_specPath ( Filesystem $fs, SplFileInfo $file )
it_finds_single_spec_via_specPath ( Filesystem $fs, SplFileInfo $file )
it_finds_single_spec_via_srcPath ( Filesystem $fs, SplFileInfo $file )
it_finds_spec_resources_via_fullSrcPath ( Filesystem $fs, SplFileInfo $file )
it_finds_spec_resources_via_specPath ( Filesystem $fs, SplFileInfo $file )
it_finds_spec_resources_via_srcPath ( Filesystem $fs, SplFileInfo $file )
it_finds_spec_resources_with_classname_underscores_via_srcPath ( Filesystem $fs, SplFileInfo $file )
it_generates_fullSpecPath_from_specPath_plus_namespace ( Filesystem $fs )
it_generates_fullSpecPath_from_specPath_plus_namespace_cutting_psr4_prefix ( Filesystem $fs )
it_generates_fullSrcPath_from_srcPath_plus_namespace ( Filesystem $fs )
it_generates_fullSrcPath_from_srcPath_plus_namespace_cutting_psr4_prefix ( Filesystem $fs )
it_generates_proper_fullSpecPath_even_from_empty_src_namespace ( Filesystem $fs )
it_generates_proper_fullSrcPath_even_from_empty_namespace ( Filesystem $fs )
it_generates_proper_specNamespace_for_empty_srcNamespace ( Filesystem $fs )
it_generates_specNamespace_using_srcNamespace_and_specPrefix ( Filesystem $fs )
it_is_a_locator ( )
it_returns_empty_array_if_nothing_found ( Filesystem $fs )
it_returns_empty_array_if_tracked_specPath_does_not_exist ( Filesystem $fs )
it_should_not_have_backslash_on_missing_prefix ( Filesystem $fs )
it_stores_srcNamespace_it_was_constructed_with ( Filesystem $fs )
it_supports_any_class_if_srcNamespace_is_empty ( Filesystem $fs )
it_supports_backslashed_classes_from_specNamespace ( Filesystem $fs )
it_supports_backslashed_classes_from_srcNamespace ( Filesystem $fs )
it_supports_classes_from_specNamespace ( Filesystem $fs )
it_supports_classes_from_srcNamespace ( Filesystem $fs )
it_supports_empty_namespace_argument ( Filesystem $fs )
it_supports_file_queries_in_specPath ( Filesystem $fs )
it_supports_file_queries_in_srcPath ( Filesystem $fs )
it_supports_folder_queries_in_specPath ( Filesystem $fs )
it_supports_folder_queries_in_srcPath ( Filesystem $fs )
it_supports_psr0_namespace_queries ( Filesystem $filesystem )
it_supports_psr0_namespace_queries_with_a_namespace_prefix ( Filesystem $filesystem )
it_supports_psr4_namespace_queries ( Filesystem $filesystem )
it_supports_specPath_queries ( Filesystem $fs )
it_supports_srcPath_queries ( Filesystem $fs )
it_throws_an_exception_on_PSR0_resource_with_double_backslash ( Filesystem $fs )
it_throws_an_exception_on_PSR0_resource_with_line_breaks_at_end ( Filesystem $fs )
it_throws_an_exception_on_PSR0_resource_with_slash_on_the_end ( Filesystem $fs )
it_throws_an_exception_on_PSR4_prefix_not_matching_namespace ( Filesystem $fs )
it_throws_an_exception_on_no_class_definition ( Filesystem $fs, SplFileInfo $file )
it_throws_an_exception_on_non_PSR0_resource ( Filesystem $fs )
it_throws_an_exception_when_spec_class_not_in_the_base_specs_namespace ( Filesystem $fs, SplFileInfo $file )
it_trims_specNamespace_during_construction ( Filesystem $fs )
it_trims_srcNamespace_during_construction ( Filesystem $fs )
its_priority_is_zero ( )
let ( Filesystem $fs )

Приватные методы

Метод Описание
convert_to_path ( $path )

Описание методов

it_creates_resource_from_backslashed_spec_class() публичный Метод

public it_creates_resource_from_backslashed_spec_class ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_creates_resource_from_backslashed_src_class() публичный Метод

public it_creates_resource_from_backslashed_src_class ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_creates_resource_from_spec_class() публичный Метод

public it_creates_resource_from_spec_class ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_creates_resource_from_spec_class_with_leading_backslash() публичный Метод

public it_creates_resource_from_spec_class_with_leading_backslash ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_creates_resource_from_src_class() публичный Метод

public it_creates_resource_from_src_class ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_creates_resource_from_src_class_even_if_srcNamespace_is_empty() публичный Метод

public it_creates_resource_from_src_class_even_if_srcNamespace_is_empty ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_does_not_support_any_other_queries() публичный Метод

public it_does_not_support_any_other_queries ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_does_not_support_anything_else() публичный Метод

public it_does_not_support_anything_else ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_does_not_throw_an_exception_on_no_class_definition_if_file_not_suffixed_with_spec() публичный Метод

public it_does_not_throw_an_exception_on_no_class_definition_if_file_not_suffixed_with_spec ( Filesystem $fs, SplFileInfo $file )
$fs PhpSpec\Util\Filesystem
$file SplFileInfo

it_finds_all_resources_from_tracked_specPath() публичный Метод

public it_finds_all_resources_from_tracked_specPath ( Filesystem $fs, SplFileInfo $file )
$fs PhpSpec\Util\Filesystem
$file SplFileInfo

it_finds_single_spec_via_specPath() публичный Метод

public it_finds_single_spec_via_specPath ( Filesystem $fs, SplFileInfo $file )
$fs PhpSpec\Util\Filesystem
$file SplFileInfo

it_finds_single_spec_via_srcPath() публичный Метод

public it_finds_single_spec_via_srcPath ( Filesystem $fs, SplFileInfo $file )
$fs PhpSpec\Util\Filesystem
$file SplFileInfo

it_finds_spec_resources_via_fullSrcPath() публичный Метод

public it_finds_spec_resources_via_fullSrcPath ( Filesystem $fs, SplFileInfo $file )
$fs PhpSpec\Util\Filesystem
$file SplFileInfo

it_finds_spec_resources_via_specPath() публичный Метод

public it_finds_spec_resources_via_specPath ( Filesystem $fs, SplFileInfo $file )
$fs PhpSpec\Util\Filesystem
$file SplFileInfo

it_finds_spec_resources_via_srcPath() публичный Метод

public it_finds_spec_resources_via_srcPath ( Filesystem $fs, SplFileInfo $file )
$fs PhpSpec\Util\Filesystem
$file SplFileInfo

it_finds_spec_resources_with_classname_underscores_via_srcPath() публичный Метод

public it_finds_spec_resources_with_classname_underscores_via_srcPath ( Filesystem $fs, SplFileInfo $file )
$fs PhpSpec\Util\Filesystem
$file SplFileInfo

it_generates_fullSpecPath_from_specPath_plus_namespace() публичный Метод

public it_generates_fullSpecPath_from_specPath_plus_namespace ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_generates_fullSpecPath_from_specPath_plus_namespace_cutting_psr4_prefix() публичный Метод

public it_generates_fullSpecPath_from_specPath_plus_namespace_cutting_psr4_prefix ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_generates_fullSrcPath_from_srcPath_plus_namespace() публичный Метод

public it_generates_fullSrcPath_from_srcPath_plus_namespace ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_generates_fullSrcPath_from_srcPath_plus_namespace_cutting_psr4_prefix() публичный Метод

public it_generates_fullSrcPath_from_srcPath_plus_namespace_cutting_psr4_prefix ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_generates_proper_fullSpecPath_even_from_empty_src_namespace() публичный Метод

public it_generates_proper_fullSpecPath_even_from_empty_src_namespace ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_generates_proper_fullSrcPath_even_from_empty_namespace() публичный Метод

public it_generates_proper_fullSrcPath_even_from_empty_namespace ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_generates_proper_specNamespace_for_empty_srcNamespace() публичный Метод

public it_generates_proper_specNamespace_for_empty_srcNamespace ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_generates_specNamespace_using_srcNamespace_and_specPrefix() публичный Метод

public it_generates_specNamespace_using_srcNamespace_and_specPrefix ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_is_a_locator() публичный Метод

public it_is_a_locator ( )

it_returns_empty_array_if_nothing_found() публичный Метод

public it_returns_empty_array_if_nothing_found ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_returns_empty_array_if_tracked_specPath_does_not_exist() публичный Метод

public it_returns_empty_array_if_tracked_specPath_does_not_exist ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_should_not_have_backslash_on_missing_prefix() публичный Метод

public it_should_not_have_backslash_on_missing_prefix ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_stores_srcNamespace_it_was_constructed_with() публичный Метод

public it_stores_srcNamespace_it_was_constructed_with ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_supports_any_class_if_srcNamespace_is_empty() публичный Метод

public it_supports_any_class_if_srcNamespace_is_empty ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_supports_backslashed_classes_from_specNamespace() публичный Метод

public it_supports_backslashed_classes_from_specNamespace ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_supports_backslashed_classes_from_srcNamespace() публичный Метод

public it_supports_backslashed_classes_from_srcNamespace ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_supports_classes_from_specNamespace() публичный Метод

public it_supports_classes_from_specNamespace ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_supports_classes_from_srcNamespace() публичный Метод

public it_supports_classes_from_srcNamespace ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_supports_empty_namespace_argument() публичный Метод

public it_supports_empty_namespace_argument ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_supports_file_queries_in_specPath() публичный Метод

public it_supports_file_queries_in_specPath ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_supports_file_queries_in_srcPath() публичный Метод

public it_supports_file_queries_in_srcPath ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_supports_folder_queries_in_specPath() публичный Метод

public it_supports_folder_queries_in_specPath ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_supports_folder_queries_in_srcPath() публичный Метод

public it_supports_folder_queries_in_srcPath ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_supports_psr0_namespace_queries() публичный Метод

public it_supports_psr0_namespace_queries ( Filesystem $filesystem )
$filesystem PhpSpec\Util\Filesystem

it_supports_psr0_namespace_queries_with_a_namespace_prefix() публичный Метод

public it_supports_psr0_namespace_queries_with_a_namespace_prefix ( Filesystem $filesystem )
$filesystem PhpSpec\Util\Filesystem

it_supports_psr4_namespace_queries() публичный Метод

public it_supports_psr4_namespace_queries ( Filesystem $filesystem )
$filesystem PhpSpec\Util\Filesystem

it_supports_specPath_queries() публичный Метод

public it_supports_specPath_queries ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_supports_srcPath_queries() публичный Метод

public it_supports_srcPath_queries ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_throws_an_exception_on_PSR0_resource_with_double_backslash() публичный Метод

public it_throws_an_exception_on_PSR0_resource_with_double_backslash ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_throws_an_exception_on_PSR0_resource_with_line_breaks_at_end() публичный Метод

public it_throws_an_exception_on_PSR0_resource_with_line_breaks_at_end ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_throws_an_exception_on_PSR0_resource_with_slash_on_the_end() публичный Метод

public it_throws_an_exception_on_PSR0_resource_with_slash_on_the_end ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_throws_an_exception_on_PSR4_prefix_not_matching_namespace() публичный Метод

public it_throws_an_exception_on_PSR4_prefix_not_matching_namespace ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_throws_an_exception_on_no_class_definition() публичный Метод

public it_throws_an_exception_on_no_class_definition ( Filesystem $fs, SplFileInfo $file )
$fs PhpSpec\Util\Filesystem
$file SplFileInfo

it_throws_an_exception_on_non_PSR0_resource() публичный Метод

public it_throws_an_exception_on_non_PSR0_resource ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_throws_an_exception_when_spec_class_not_in_the_base_specs_namespace() публичный Метод

public it_throws_an_exception_when_spec_class_not_in_the_base_specs_namespace ( Filesystem $fs, SplFileInfo $file )
$fs PhpSpec\Util\Filesystem
$file SplFileInfo

it_trims_specNamespace_during_construction() публичный Метод

public it_trims_specNamespace_during_construction ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

it_trims_srcNamespace_during_construction() публичный Метод

public it_trims_srcNamespace_during_construction ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem

its_priority_is_zero() публичный Метод

let() публичный Метод

public let ( Filesystem $fs )
$fs PhpSpec\Util\Filesystem