ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 ($method_reflection, $name) | |
Tests whether the YAML Kitchen Sink info can be parsed. More... | |
test_return_type ($method_reflection, $name) | |
Tests whether the method either returns a factory or a component. More... | |
test_factory_method_name_compatible_docstring ($method_reflection, $name) | |
Tests whether the method name matches the. More... | |
test_method_params ($method_reflection, $name) | |
Tests whether methods returning factories have no parameters. More... | |
test_kitchensink_info_description ($method_reflection, $name) | |
methods_provider More... | |
test_kitchensink_info_background ($method_reflection, $name) | |
methods_provider More... | |
test_kitchensink_info_featurewiki ($method_reflection, $name) | |
methods_provider More... | |
test_kitchensink_info_javascript ($method_reflection, $name) | |
methods_provider More... | |
test_kitchensink_info_rules ($method_reflection, $name) | |
methods_provider More... | |
test_kitchensink_info_context ($method_reflection, $name) | |
methods_provider More... | |
kitchensink_info_settings_merged_with_defaults ($name) | |
Data Fields | |
const | COMPONENT = 1 |
const | FACTORY = 2 |
Protected Member Functions | |
returnsFactory ($docstring_data) | |
returnsComponent ($docstring_data) | |
isFactoryName ($name) | |
get_regex_factory_namespace () | |
Private Attributes | |
$kitchensink_info_settings_default | |
$description_categories | |
$rules_categories | |
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 17 of file AbstractFactoryTest.php.
|
final |
Definition at line 71 of file AbstractFactoryTest.php.
Referenced by methods_provider(), and setUp().
|
protected |
Definition at line 189 of file AbstractFactoryTest.php.
Referenced by test_factory_method_name_compatible_docstring().
|
finalprotected |
Definition at line 66 of file AbstractFactoryTest.php.
References $name.
Referenced by returnsFactory(), and test_proper_name().
|
final |
Definition at line 321 of file AbstractFactoryTest.php.
References $kitchensink_info_settings_default, and $name.
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 76 of file AbstractFactoryTest.php.
References array, and buildFactoryReflection().
|
finalprotected |
Definition at line 60 of file AbstractFactoryTest.php.
Referenced by test_return_type().
|
finalprotected |
Definition at line 55 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 86 of file AbstractFactoryTest.php.
References buildFactoryReflection().
|
final |
Tests whether the YAML Kitchen Sink info can be parsed.
methods_provider
Definition at line 117 of file AbstractFactoryTest.php.
References $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_rules(), test_method_params(), and test_return_type().
|
final |
Tests whether the method name matches the.
methods_provider
Definition at line 157 of file AbstractFactoryTest.php.
References $message, $name, get_regex_factory_namespace(), returnsFactory(), test_check_yaml_extraction(), and test_return_type().
|
final |
methods_provider
Definition at line 238 of file AbstractFactoryTest.php.
References $message, $name, kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 304 of file AbstractFactoryTest.php.
References $message, $name, kitchensink_info_settings_merged_with_defaults(), returnsFactory(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 214 of file AbstractFactoryTest.php.
References $message, $name, kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 252 of file AbstractFactoryTest.php.
References $message, $name, kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 266 of file AbstractFactoryTest.php.
References $message, $name, kitchensink_info_settings_merged_with_defaults(), and test_check_yaml_extraction().
|
final |
methods_provider
Definition at line 280 of file AbstractFactoryTest.php.
References $message, $name, 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 199 of file AbstractFactoryTest.php.
References $message, $name, returnsFactory(), and test_check_yaml_extraction().
AbstractFactoryTest::test_proper_name | ( | ) |
Definition at line 102 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 139 of file AbstractFactoryTest.php.
References $message, $name, returnsComponent(), returnsFactory(), and test_check_yaml_extraction().
Referenced by test_factory_method_name_compatible_docstring().
|
private |
Definition at line 48 of file AbstractFactoryTest.php.
|
private |
Definition at line 28 of file AbstractFactoryTest.php.
Referenced by kitchensink_info_settings_merged_with_defaults().
|
private |
Definition at line 51 of file AbstractFactoryTest.php.
const AbstractFactoryTest::COMPONENT = 1 |
Definition at line 19 of file AbstractFactoryTest.php.
const AbstractFactoryTest::FACTORY = 2 |
Definition at line 20 of file AbstractFactoryTest.php.