ILIAS
release_8 Revision v8.19
|
Defines tests every SHOULD pass UI-factory. More...
Public Member Functions | |
buildFactoryReflection () | |
methods_provider () | |
setUp () | |
test_proper_namespace () | |
test_proper_name () | |
test_check_yaml_extraction (ReflectionMethod $method_reflection, string $name) | |
Tests whether the YAML Kitchen Sink info can be parsed. More... | |
test_return_type (ReflectionMethod $method_reflection, string $name) | |
Tests whether the method either returns a factory or a component. More... | |
test_factory_method_name_compatible_docstring (ReflectionMethod $method_reflection, string $name) | |
Tests whether the method name matches the return doctring? More... | |
test_method_params (ReflectionMethod $method_reflection, string $name) | |
Tests whether methods returning factories have no parameters. More... | |
test_kitchensink_info_description (ReflectionMethod $method_reflection, string $name) | |
methods_provider More... | |
test_kitchensink_info_rivals (ReflectionMethod $method_reflection, string $name) | |
methods_provider More... | |
test_kitchensink_info_background (ReflectionMethod $method_reflection, string $name) | |
methods_provider More... | |
test_kitchensink_info_featurewiki (ReflectionMethod $method_reflection, string $name) | |
methods_provider More... | |
test_kitchensink_info_javascript (ReflectionMethod $method_reflection, string $name) | |
methods_provider More... | |
test_kitchensink_info_rules (ReflectionMethod $method_reflection, string $name) | |
methods_provider More... | |
test_kitchensink_info_context (ReflectionMethod $method_reflection, string $name) | |
methods_provider More... | |
kitchensink_info_settings_merged_with_defaults (string $name) | |
Data Fields | |
const | COMPONENT = 1 |
const | FACTORY = 2 |
Protected Member Functions | |
returnsFactory (array $docstring_data) | |
returnsComponent (array $docstring_data) | |
isFactoryName (string $name) | |
get_regex_factory_namespace () | |
Private Attributes | |
array | $kitchensink_info_settings_default |
array array | $description_categories = ['purpose', 'composition', 'effect', 'rival'] |
array | $rules_categories |
Crawler EntriesYamlParser | $yaml_parser |
ReflectionClass | $reflection |
Defines tests every SHOULD pass UI-factory.
Checks as much rules as possible from the 'Interfaces to Factories' part of the UI framework rules.
TODO: This test heavily relies on data providers and dependencies. PHPUnit does not support dependencies per provided data set via , therefore the test express the dependencies explicitly by calling subsequent testing methods. These leads to test methods being executed to often.
Definition at line 36 of file AbstractFactoryTest.php.
|
final |
Definition at line 94 of file AbstractFactoryTest.php.
Referenced by methods_provider(), and setUp().
|
protected |
Definition at line 211 of file AbstractFactoryTest.php.
Referenced by test_factory_method_name_compatible_docstring().
|
finalprotected |
Definition at line 89 of file AbstractFactoryTest.php.
Referenced by returnsFactory(), and test_proper_name().
|
final |
Definition at line 357 of file AbstractFactoryTest.php.
References $kitchensink_info_settings_default.
Referenced by test_kitchensink_info_background(), test_kitchensink_info_context(), test_kitchensink_info_description(), test_kitchensink_info_featurewiki(), test_kitchensink_info_javascript(), and test_kitchensink_info_rules().
|
final |
Definition at line 99 of file AbstractFactoryTest.php.
References buildFactoryReflection().
|
finalprotected |
Definition at line 83 of file AbstractFactoryTest.php.
Referenced by test_return_type().
|
finalprotected |
Definition at line 78 of file AbstractFactoryTest.php.
References isFactoryName().
Referenced by test_factory_method_name_compatible_docstring(), test_kitchensink_info_context(), test_method_params(), and test_return_type().
AbstractFactoryTest::setUp | ( | ) |
Definition at line 109 of file AbstractFactoryTest.php.
References buildFactoryReflection().
|
final |
Tests whether the YAML Kitchen Sink info can be parsed.
methods_provider
Definition at line 137 of file AbstractFactoryTest.php.
References Vendor\Package\$e, and $message.
Referenced by test_factory_method_name_compatible_docstring(), test_kitchensink_info_background(), test_kitchensink_info_context(), test_kitchensink_info_description(), test_kitchensink_info_featurewiki(), test_kitchensink_info_javascript(), test_kitchensink_info_rivals(), test_kitchensink_info_rules(), test_method_params(), and test_return_type().
|
final |
Tests whether the method name matches the return doctring?
methods_provider
Definition at line 177 of file AbstractFactoryTest.php.
References $message, get_regex_factory_namespace(), returnsFactory(), test_check_yaml_extraction(), and test_return_type().
|
final |
methods_provider
Definition at line 274 of file AbstractFactoryTest.php.
References $message, kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 340 of file AbstractFactoryTest.php.
References $message, kitchensink_info_settings_merged_with_defaults(), returnsFactory(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 236 of file AbstractFactoryTest.php.
References $message, kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 288 of file AbstractFactoryTest.php.
References $message, kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 302 of file AbstractFactoryTest.php.
References $message, kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 260 of file AbstractFactoryTest.php.
References $message, and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 316 of file AbstractFactoryTest.php.
References $message, kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
Tests whether methods returning factories have no parameters.
methods_provider
Definition at line 221 of file AbstractFactoryTest.php.
References $message, returnsFactory(), and test_check_yaml_extraction().
AbstractFactoryTest::test_proper_name | ( | ) |
Definition at line 125 of file AbstractFactoryTest.php.
References $message, $name, and isFactoryName().
AbstractFactoryTest::test_proper_namespace | ( | ) |
|
final |
Tests whether the method either returns a factory or a component.
methods_provider
Definition at line 159 of file AbstractFactoryTest.php.
References $message, returnsComponent(), returnsFactory(), and test_check_yaml_extraction().
Referenced by test_factory_method_name_compatible_docstring().
|
private |
Definition at line 62 of file AbstractFactoryTest.php.
|
private |
Definition at line 46 of file AbstractFactoryTest.php.
Referenced by kitchensink_info_settings_merged_with_defaults().
|
private |
Definition at line 76 of file AbstractFactoryTest.php.
|
private |
Definition at line 64 of file AbstractFactoryTest.php.
|
private |
Definition at line 75 of file AbstractFactoryTest.php.
const AbstractFactoryTest::COMPONENT = 1 |
Definition at line 38 of file AbstractFactoryTest.php.
const AbstractFactoryTest::FACTORY = 2 |
Definition at line 39 of file AbstractFactoryTest.php.