ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
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) | |
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 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 221 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 344 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.
Definition at line 149 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?
Definition at line 187 of file AbstractFactoryTestCase.php.
References $message, getRegexFactoryNamespace(), returnsFactory(), testCheckYamlExtraction(), and testReturnType().
|
final |
Definition at line 276 of file AbstractFactoryTestCase.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
|
final |
Definition at line 334 of file AbstractFactoryTestCase.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), returnsFactory(), and testCheckYamlExtraction().
|
final |
Definition at line 242 of file AbstractFactoryTestCase.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
|
final |
Definition at line 288 of file AbstractFactoryTestCase.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
|
final |
Definition at line 300 of file AbstractFactoryTestCase.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
|
final |
Definition at line 264 of file AbstractFactoryTestCase.php.
References $message, and testCheckYamlExtraction().
|
final |
Definition at line 312 of file AbstractFactoryTestCase.php.
References $message, kitchensinkInfoSettingsMergedWithDefaults(), and testCheckYamlExtraction().
|
final |
Tests whether methods returning factories have no parameters.
Definition at line 230 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.
Definition at line 170 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.