|
ILIAS
release_8 Revision v8.24
|
Defines tests every SHOULD pass UI-factory. More...
Inheritance diagram for AbstractFactoryTest:
Collaboration diagram for AbstractFactoryTest: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) | |
| @dataProvider methods_provider More... | |
| test_kitchensink_info_rivals (ReflectionMethod $method_reflection, string $name) | |
| @dataProvider methods_provider More... | |
| test_kitchensink_info_background (ReflectionMethod $method_reflection, string $name) | |
| @dataProvider methods_provider More... | |
| test_kitchensink_info_featurewiki (ReflectionMethod $method_reflection, string $name) | |
| @dataProvider methods_provider More... | |
| test_kitchensink_info_javascript (ReflectionMethod $method_reflection, string $name) | |
| @dataProvider methods_provider More... | |
| test_kitchensink_info_rules (ReflectionMethod $method_reflection, string $name) | |
| @dataProvider methods_provider More... | |
| test_kitchensink_info_context (ReflectionMethod $method_reflection, string $name) | |
| @dataProvider 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 | $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 @depends, 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().
Here is the caller graph for this function:
|
protected |
Reimplemented in MainFactoryTest.
Definition at line 211 of file AbstractFactoryTest.php.
|
finalprotected |
Definition at line 89 of file AbstractFactoryTest.php.
References $name.
Referenced by returnsFactory(), and test_proper_name().
Here is the caller graph for this function:
|
final |
Definition at line 357 of file AbstractFactoryTest.php.
References $name.
|
final |
Definition at line 99 of file AbstractFactoryTest.php.
References $reflection, and buildFactoryReflection().
Here is the call graph for this function:
|
finalprotected |
Definition at line 83 of file AbstractFactoryTest.php.
References $reflection.
Referenced by test_return_type().
Here is the caller graph for this function:
|
finalprotected |
Definition at line 78 of file AbstractFactoryTest.php.
References isFactoryName().
Referenced by test_return_type().
Here is the call graph for this function:
Here is the caller graph for this function:| AbstractFactoryTest::setUp | ( | ) |
Definition at line 109 of file AbstractFactoryTest.php.
References buildFactoryReflection().
Here is the call graph for this function:
|
final |
Tests whether the YAML Kitchen Sink info can be parsed.
@dataProvider methods_provider
Definition at line 137 of file AbstractFactoryTest.php.
References Vendor\Package\$e, and $message.
Referenced by test_return_type().
Here is the caller graph for this function:
|
final |
Tests whether the method name matches the return doctring?
@dataProvider methods_provider
Definition at line 177 of file AbstractFactoryTest.php.
|
final |
@dataProvider methods_provider
Definition at line 274 of file AbstractFactoryTest.php.
|
final |
@dataProvider methods_provider
Definition at line 340 of file AbstractFactoryTest.php.
|
final |
@dataProvider methods_provider
Definition at line 236 of file AbstractFactoryTest.php.
|
final |
@dataProvider methods_provider
Definition at line 288 of file AbstractFactoryTest.php.
|
final |
@dataProvider methods_provider
Definition at line 302 of file AbstractFactoryTest.php.
|
final |
@dataProvider methods_provider
Definition at line 260 of file AbstractFactoryTest.php.
|
final |
@dataProvider methods_provider
Definition at line 316 of file AbstractFactoryTest.php.
|
final |
Tests whether methods returning factories have no parameters.
@dataProvider methods_provider
Definition at line 221 of file AbstractFactoryTest.php.
| AbstractFactoryTest::test_proper_name | ( | ) |
Reimplemented in MainFactoryTest.
Definition at line 125 of file AbstractFactoryTest.php.
References $message, $name, and isFactoryName().
Here is the call graph for this function:| AbstractFactoryTest::test_proper_namespace | ( | ) |
Reimplemented in MainFactoryTest.
Definition at line 115 of file AbstractFactoryTest.php.
References $message.
|
final |
Tests whether the method either returns a factory or a component.
@dataProvider methods_provider
Definition at line 159 of file AbstractFactoryTest.php.
References $message, $name, returnsComponent(), returnsFactory(), and test_check_yaml_extraction().
Here is the call graph for this function:
|
private |
Definition at line 62 of file AbstractFactoryTest.php.
|
private |
Definition at line 46 of file AbstractFactoryTest.php.
|
private |
Definition at line 76 of file AbstractFactoryTest.php.
Referenced by methods_provider(), and returnsComponent().
|
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.