ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
|
Defines tests every SHOULD pass UI-factory. More...
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().
|
staticfinal |
Definition at line 106 of file AbstractFactoryTestCase.php.
|
protected |
Definition at line 224 of file AbstractFactoryTestCase.php.
Referenced by testFactoryMethodNameCompatibleDocstring().
|
finalprotected |
Definition at line 96 of file AbstractFactoryTestCase.php.
Referenced by returnsFactory(), and testProperName().
|
final |
Definition at line 363 of file AbstractFactoryTestCase.php.
Referenced by testKitchensinkInfoBackground(), testKitchensinkInfoContext(), testKitchensinkInfoDescription(), testKitchensinkInfoFeatureWiki(), testKitchensinkInfoJavaScript(), and testKitchensinkInfoRules().
|
finalprotected |
Definition at line 90 of file AbstractFactoryTestCase.php.
Referenced by testReturnType().
|
finalprotected |
Definition at line 85 of file AbstractFactoryTestCase.php.
References isFactoryName().
Referenced by testFactoryMethodNameCompatibleDocstring(), testKitchensinkInfoContext(), testMethodParams(), and testReturnType().
AbstractFactoryTestCase::setUp | ( | ) |
Definition at line 122 of file AbstractFactoryTestCase.php.
References buildFactoryReflection().
|
final |
Tests whether the YAML Kitchen Sink info can be parsed.
getMethodsProvider
Definition at line 150 of file AbstractFactoryTestCase.php.
References Vendor\Package\$e, and $message.
Referenced by testFactoryMethodNameCompatibleDocstring(), testKitchensinkInfoBackground(), testKitchensinkInfoContext(), testKitchensinkInfoDescription(), testKitchensinkInfoFeatureWiki(), testKitchensinkInfoJavaScript(), testKitchensinkInfoRivals(), testKitchensinkInfoRules(), testMethodParams(), and testReturnType().
|
final |
Tests whether the method name matches the return doctring?
getMethodsProvider
Definition at line 190 of file AbstractFactoryTestCase.php.
References $message, getRegexFactoryNamespace(), returnsFactory(), testCheckYamlExtraction(), and testReturnType().
|
final |
getMethodsProvider
Definition at line 287 of file AbstractFactoryTestCase.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
|
final |
getMethodsProvider
Definition at line 353 of file AbstractFactoryTestCase.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), returnsFactory(), and testCheckYamlExtraction().
|
final |
getMethodsProvider
Definition at line 249 of file AbstractFactoryTestCase.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
|
final |
getMethodsProvider
Definition at line 301 of file AbstractFactoryTestCase.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
|
final |
getMethodsProvider
Definition at line 315 of file AbstractFactoryTestCase.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
|
final |
getMethodsProvider
Definition at line 273 of file AbstractFactoryTestCase.php.
References $message, and testCheckYamlExtraction().
|
final |
getMethodsProvider
Definition at line 329 of file AbstractFactoryTestCase.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
|
final |
Tests whether methods returning factories have no parameters.
getMethodsProvider
Definition at line 234 of file AbstractFactoryTestCase.php.
References $message, returnsFactory(), and testCheckYamlExtraction().
AbstractFactoryTestCase::testProperName | ( | ) |
Definition at line 138 of file AbstractFactoryTestCase.php.
References $message, and isFactoryName().
AbstractFactoryTestCase::testProperNamespace | ( | ) |
|
final |
Tests whether the method either returns a factory or a component.
getMethodsProvider
Definition at line 172 of file AbstractFactoryTestCase.php.
References $message, returnsComponent(), returnsFactory(), and testCheckYamlExtraction().
Referenced by testFactoryMethodNameCompatibleDocstring().
|
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.