|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Defines tests every SHOULD pass UI-factory. More...
Inheritance diagram for AbstractFactoryTest:
Collaboration diagram for AbstractFactoryTest:Public Member Functions | |
| buildFactoryReflection () | |
| getMethodsProvider () | |
| setUp () | |
| testProperNamespace () | |
| testProperName () | |
| testCheckYamlExtraction (ReflectionMethod $method_reflection, string $name) | |
| Tests whether the YAML Kitchen Sink info can be parsed. More... | |
| testReturnType (ReflectionMethod $method_reflection, string $name) | |
| Tests whether the method either returns a factory or a component. More... | |
| testFactoryMethodNameCompatibleDocstring (ReflectionMethod $method_reflection, string $name) | |
| Tests whether the method name matches the return doctring? More... | |
| testMethodParams (ReflectionMethod $method_reflection, string $name) | |
| Tests whether methods returning factories have no parameters. More... | |
| testKitchensinkInfoDescription (ReflectionMethod $method_reflection, string $name) | |
| getMethodsProvider More... | |
| testKitchensinkInfoRivals (ReflectionMethod $method_reflection, string $name) | |
| getMethodsProvider More... | |
| testKitchensinkInfoBackground (ReflectionMethod $method_reflection, string $name) | |
| getMethodsProvider More... | |
| testKitchensinkInfoFeatureWiki (ReflectionMethod $method_reflection, string $name) | |
| getMethodsProvider More... | |
| testKitchensinkInfoJavaScript (ReflectionMethod $method_reflection, string $name) | |
| getMethodsProvider More... | |
| testKitchensinkInfoRules (ReflectionMethod $method_reflection, string $name) | |
| getMethodsProvider More... | |
| testKitchensinkInfoContext (ReflectionMethod $method_reflection, string $name) | |
| getMethodsProvider More... | |
| kitchensinkInfoSettingsMergedWithDefaults (string $name) | |
Data Fields | |
| const | COMPONENT = 1 |
| const | FACTORY = 2 |
Protected Member Functions | |
| returnsFactory (array $docstring_data) | |
| returnsComponent (array $docstring_data) | |
| isFactoryName (string $name) | |
| getRegexFactoryNamespace () | |
Private Attributes | |
| array | $omit_factory_methods |
| 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 100 of file AbstractFactoryTest.php.
Referenced by getMethodsProvider(), and setUp().
Here is the caller graph for this function:
|
final |
Definition at line 105 of file AbstractFactoryTest.php.
References $omit_factory_methods, and buildFactoryReflection().
Here is the call graph for this function:
|
protected |
Definition at line 222 of file AbstractFactoryTest.php.
Referenced by testFactoryMethodNameCompatibleDocstring().
Here is the caller graph for this function:
|
finalprotected |
Definition at line 95 of file AbstractFactoryTest.php.
Referenced by returnsFactory(), and testProperName().
Here is the caller graph for this function:
|
final |
Definition at line 361 of file AbstractFactoryTest.php.
References $kitchensink_info_settings_default.
Referenced by testKitchensinkInfoBackground(), testKitchensinkInfoContext(), testKitchensinkInfoDescription(), testKitchensinkInfoFeatureWiki(), testKitchensinkInfoJavaScript(), and testKitchensinkInfoRules().
Here is the caller graph for this function:
|
finalprotected |
Definition at line 89 of file AbstractFactoryTest.php.
Referenced by testReturnType().
Here is the caller graph for this function:
|
finalprotected |
Definition at line 84 of file AbstractFactoryTest.php.
References isFactoryName().
Referenced by testFactoryMethodNameCompatibleDocstring(), testKitchensinkInfoContext(), testMethodParams(), and testReturnType().
Here is the call graph for this function:
Here is the caller graph for this function:| AbstractFactoryTest::setUp | ( | ) |
Definition at line 120 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.
getMethodsProvider
Definition at line 148 of file AbstractFactoryTest.php.
References Vendor\Package\$e, and $message.
Referenced by testFactoryMethodNameCompatibleDocstring(), testKitchensinkInfoBackground(), testKitchensinkInfoContext(), testKitchensinkInfoDescription(), testKitchensinkInfoFeatureWiki(), testKitchensinkInfoJavaScript(), testKitchensinkInfoRivals(), testKitchensinkInfoRules(), testMethodParams(), and testReturnType().
Here is the caller graph for this function:
|
final |
Tests whether the method name matches the return doctring?
getMethodsProvider
Definition at line 188 of file AbstractFactoryTest.php.
References $message, getRegexFactoryNamespace(), returnsFactory(), testCheckYamlExtraction(), and testReturnType().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 285 of file AbstractFactoryTest.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 351 of file AbstractFactoryTest.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), returnsFactory(), and testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 247 of file AbstractFactoryTest.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 299 of file AbstractFactoryTest.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 313 of file AbstractFactoryTest.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 271 of file AbstractFactoryTest.php.
References $message, and testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 327 of file AbstractFactoryTest.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
Tests whether methods returning factories have no parameters.
getMethodsProvider
Definition at line 232 of file AbstractFactoryTest.php.
References $message, returnsFactory(), and testCheckYamlExtraction().
Here is the call graph for this function:| AbstractFactoryTest::testProperName | ( | ) |
Definition at line 136 of file AbstractFactoryTest.php.
References $message, and isFactoryName().
Here is the call graph for this function:| AbstractFactoryTest::testProperNamespace | ( | ) |
|
final |
Tests whether the method either returns a factory or a component.
getMethodsProvider
Definition at line 170 of file AbstractFactoryTest.php.
References $message, returnsComponent(), returnsFactory(), and testCheckYamlExtraction().
Referenced by testFactoryMethodNameCompatibleDocstring().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 68 of file AbstractFactoryTest.php.
|
private |
Definition at line 52 of file AbstractFactoryTest.php.
Referenced by kitchensinkInfoSettingsMergedWithDefaults().
|
private |
Definition at line 43 of file AbstractFactoryTest.php.
Referenced by getMethodsProvider().
|
private |
Definition at line 82 of file AbstractFactoryTest.php.
|
private |
Definition at line 70 of file AbstractFactoryTest.php.
|
private |
Definition at line 81 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.