|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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) | |
| testKitchensinkInfoRivals (ReflectionMethod $method_reflection, string $name) | |
| testKitchensinkInfoBackground (ReflectionMethod $method_reflection, string $name) | |
| testKitchensinkInfoFeatureWiki (ReflectionMethod $method_reflection, string $name) | |
| testKitchensinkInfoJavaScript (ReflectionMethod $method_reflection, string $name) | |
| testKitchensinkInfoRules (ReflectionMethod $method_reflection, string $name) | |
| testKitchensinkInfoContext (ReflectionMethod $method_reflection, string $name) | |
| 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 | $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 @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 AbstractFactoryTestCase.php.
|
staticfinal |
Definition at line 101 of file AbstractFactoryTestCase.php.
Referenced by getMethodsProvider(), and setUp().
Here is the caller graph for this function:
|
staticfinal |
Definition at line 106 of file AbstractFactoryTestCase.php.
References $reflection, and buildFactoryReflection().
Here is the call graph for this function:
|
protected |
Reimplemented in MainFactoryTest.
Definition at line 221 of file AbstractFactoryTestCase.php.
|
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 344 of file AbstractFactoryTestCase.php.
|
finalprotected |
Definition at line 90 of file AbstractFactoryTestCase.php.
References $reflection.
Referenced by testReturnType().
Here is the caller graph for this function:
|
finalprotected |
Definition at line 85 of file AbstractFactoryTestCase.php.
References isFactoryName().
Referenced by 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.
Definition at line 149 of file AbstractFactoryTestCase.php.
References Vendor\Package\$e.
Referenced by testReturnType().
Here is the caller graph for this function:
|
final |
Tests whether the method name matches the return doctring?
Definition at line 187 of file AbstractFactoryTestCase.php.
|
final |
Definition at line 276 of file AbstractFactoryTestCase.php.
|
final |
Definition at line 334 of file AbstractFactoryTestCase.php.
|
final |
Definition at line 242 of file AbstractFactoryTestCase.php.
|
final |
Definition at line 288 of file AbstractFactoryTestCase.php.
|
final |
Definition at line 300 of file AbstractFactoryTestCase.php.
|
final |
Definition at line 264 of file AbstractFactoryTestCase.php.
|
final |
Definition at line 312 of file AbstractFactoryTestCase.php.
|
final |
Tests whether methods returning factories have no parameters.
Definition at line 230 of file AbstractFactoryTestCase.php.
| AbstractFactoryTestCase::testProperName | ( | ) |
Reimplemented in MainFactoryTest.
Definition at line 138 of file AbstractFactoryTestCase.php.
References isFactoryName().
Here is the call graph for this function:| AbstractFactoryTestCase::testProperNamespace | ( | ) |
Reimplemented in MainFactoryTest.
Definition at line 128 of file AbstractFactoryTestCase.php.
|
final |
Tests whether the method either returns a factory or a component.
Definition at line 170 of file AbstractFactoryTestCase.php.
References returnsComponent(), returnsFactory(), and testCheckYamlExtraction().
Here is the call 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.
Referenced by getMethodsProvider(), and returnsComponent().
|
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.