|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Defines tests every SHOULD pass UI-factory. More...
Inheritance diagram for AbstractFactoryTestCase:
Collaboration diagram for AbstractFactoryTestCase:Public Member Functions | |
| 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) | |
Static Public Member Functions | |
| static | buildFactoryReflection () |
| static | getMethodsProvider () |
Data Fields | |
| const | COMPONENT = 1 |
| const | FACTORY = 2 |
Static Public Attributes | |
| static string | $factory_title = '' |
Protected Member Functions | |
| returnsFactory (array $docstring_data) | |
| returnsComponent (array $docstring_data) | |
| isFactoryName (string $name) | |
| getRegexFactoryNamespace () | |
Private Attributes | |
| Crawler EntriesYamlParser | $yaml_parser |
Static Private Attributes | |
| static array | $omit_factory_methods |
| static array | $kitchensink_info_settings_default |
| static array static array | $description_categories = ['purpose', 'composition', 'effect', 'rival'] |
| static array | $rules_categories |
| static 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 AbstractFactoryTestCase.php.
|
staticfinal |
Definition at line 101 of file AbstractFactoryTestCase.php.
Referenced by setUp().
Here is the caller graph for this function:
|
staticfinal |
Definition at line 106 of file AbstractFactoryTestCase.php.
|
protected |
Definition at line 224 of file AbstractFactoryTestCase.php.
Referenced by testFactoryMethodNameCompatibleDocstring().
Here is the caller graph for this function:
|
finalprotected |
Definition at line 96 of file AbstractFactoryTestCase.php.
Referenced by returnsFactory(), and testProperName().
Here is the caller graph for this function:
|
final |
Definition at line 363 of file AbstractFactoryTestCase.php.
Referenced by testKitchensinkInfoBackground(), testKitchensinkInfoContext(), testKitchensinkInfoDescription(), testKitchensinkInfoFeatureWiki(), testKitchensinkInfoJavaScript(), and testKitchensinkInfoRules().
Here is the caller graph for this function:
|
finalprotected |
Definition at line 90 of file AbstractFactoryTestCase.php.
Referenced by testReturnType().
Here is the caller graph for this function:
|
finalprotected |
Definition at line 85 of file AbstractFactoryTestCase.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:| AbstractFactoryTestCase::setUp | ( | ) |
Definition at line 122 of file AbstractFactoryTestCase.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 150 of file AbstractFactoryTestCase.php.
References Vendor\Package\$e.
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 190 of file AbstractFactoryTestCase.php.
References getRegexFactoryNamespace(), returnsFactory(), testCheckYamlExtraction(), and testReturnType().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 287 of file AbstractFactoryTestCase.php.
References kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 353 of file AbstractFactoryTestCase.php.
References kitchensinkInfoSettingsMergedWithDefaults(), returnsFactory(), and testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 249 of file AbstractFactoryTestCase.php.
References kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 301 of file AbstractFactoryTestCase.php.
References kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 315 of file AbstractFactoryTestCase.php.
References kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 273 of file AbstractFactoryTestCase.php.
References testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
getMethodsProvider
Definition at line 329 of file AbstractFactoryTestCase.php.
References kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
Here is the call graph for this function:
|
final |
Tests whether methods returning factories have no parameters.
getMethodsProvider
Definition at line 234 of file AbstractFactoryTestCase.php.
References returnsFactory(), and testCheckYamlExtraction().
Here is the call graph for this function:| AbstractFactoryTestCase::testProperName | ( | ) |
Definition at line 138 of file AbstractFactoryTestCase.php.
References isFactoryName().
Here is the call graph for this function:| AbstractFactoryTestCase::testProperNamespace | ( | ) |
Definition at line 128 of file AbstractFactoryTestCase.php.
|
final |
Tests whether the method either returns a factory or a component.
getMethodsProvider
Definition at line 172 of file AbstractFactoryTestCase.php.
References returnsComponent(), returnsFactory(), and testCheckYamlExtraction().
Referenced by testFactoryMethodNameCompatibleDocstring().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 68 of file AbstractFactoryTestCase.php.
|
static |
Definition at line 83 of file AbstractFactoryTestCase.php.
|
staticprivate |
Definition at line 52 of file AbstractFactoryTestCase.php.
|
staticprivate |
Definition at line 43 of file AbstractFactoryTestCase.php.
|
staticprivate |
Definition at line 82 of file AbstractFactoryTestCase.php.
|
staticprivate |
Definition at line 70 of file AbstractFactoryTestCase.php.
|
private |
Definition at line 81 of file AbstractFactoryTestCase.php.
| const AbstractFactoryTestCase::COMPONENT = 1 |
Definition at line 38 of file AbstractFactoryTestCase.php.
| const AbstractFactoryTestCase::FACTORY = 2 |
Definition at line 39 of file AbstractFactoryTestCase.php.