Commit Graph

139 Commits

Author SHA1 Message Date
Meritoo
d5542b60e3 Implement methods of CollectionInterface directly in BaseCollection class (instead of traits) 2021-04-04 23:05:42 +02:00
Meritoo
4f8c355d1b Create and implement CollectionInterface as contract of all collections (e.g. based on the BaseCollection class) 2021-03-29 21:41:54 +02:00
Meritoo
e47eaae8b2 Move Renderable class: Meritoo\Common -> Meritoo\Common\Contract 2021-03-28 22:34:45 +02:00
Meritoo
47d07150d3 Minor refactoring 2021-02-26 15:13:33 +01:00
Meritoo
c6efc30872 Fix "Array and string offset access syntax with curly braces is deprecated" error while running tests (using PHP 7.4) 2021-02-26 15:09:02 +01:00
Meritoo
8fec0db05f Increase Mutation Score Indicator (MSI) by creating stronger tests of BaseCollection class 2020-10-24 17:31:25 +02:00
Meritoo
5cd58aec25 [Miscellaneous] [Regex] Implement data providers in tests 2020-08-25 15:36:49 +02:00
Meritoo
ddb3f0a544 [Miscellaneous] [Regex] Use simpler & stronger pattern to match name of file 2019-12-18 20:31:33 +01:00
Meritoo
872259e63d [BaseCollection] Treat the null index as "no index" only while adding new element, iow. do not treat empty string as "no index" behaviour 2019-09-19 12:33:03 +02:00
Meritoo
a7c39b26ba Rename Collection class to BaseCollection. Add BaseCollection::isValidType() method to validate type of element before add it to collection. Add BaseCollection ::prepareElements() method to allow preparation of elements in custom way. 2019-09-18 14:51:09 +02:00
Meritoo
b91606ada9 Increase Mutation Score Indicator (MSI) by creating stronger tests of Arrays class 2019-09-15 20:14:23 +02:00
Meritoo
b0e404aeb9 Minor refactoring 2019-09-09 16:06:20 +02:00
Meritoo
9903c82496 Add Miscellaneous::calculateGreatestCommonDivisor() method 2019-09-09 09:41:07 +02:00
Meritoo
678cdfdf01 Minor refactoring 2019-09-06 11:58:55 +02:00
Meritoo
16cdd1cd60 Extract BaseTestCaseTrait::assertMethodVisibility() & BaseTestCaseTrait::assertMethodArgumentsCount() methods (from BaseTestCaseTrait::assertMethodVisibilityAndArguments() method) 2019-09-05 21:57:59 +02:00
Meritoo
f7a8da0550 Add Uri::buildUrl() method
Builds url with given root url and parts of url
2019-08-28 16:01:27 +02:00
Meritoo
891411e231 Add Arrays::containsEmptyStringsOnly() method
Returns information if given array contains an empty strings only
2019-08-28 15:51:03 +02:00
Meritoo
e704dacabd Add Regex::clearBeginningSlash() and Regex::clearEndingSlash() methods (that remove slash from the beginning and the end of given string) 2019-08-27 20:26:31 +02:00
Meritoo
cc06cdde6f Minor refactoring 2019-08-25 20:22:42 +02:00
Meritoo
030e33064d Increase Mutation Score Indicator (MSI) by making Meritoo\Common\Traits\Test\Base\BaseTestCaseTrait::getFilePathForTesting() method protected (instead of public) 2019-08-24 17:22:07 +02:00
Meritoo
bc20645cba Increase Mutation Score Indicator (MSI) by removing "src/Type/DatePeriod.php:131 [M] LogicalOr" mutant 2019-08-11 13:25:28 +02:00
Meritoo
ec1e95a086 Minor refactoring 2019-08-11 13:06:19 +02:00
Meritoo
ce7ec254b1 Increase Mutation Score Indicator (MSI) by removing "src/Type/Base/BaseType.php:37 [M] TrueValue" mutant 2019-08-11 12:55:12 +02:00
Meritoo
a86a10c51e Increase Mutation Score Indicator (MSI) by removing "src/Exception/Reflection/CannotResolveClassNameException.php:29 [M] TrueValue" mutant 2019-08-10 21:32:40 +02:00
Meritoo
a2c875556e Move validation of year, month and day to separate methods 2019-06-20 21:32:03 +02:00
Meritoo
c5a68b54af Fix "Argument 1 of Meritoo\\Common\\Utilities\\Date::getdayofweek expects int, string|false provided" bug pointed by Psalm 2019-06-20 21:31:35 +02:00
Meritoo
4ddc299e5b Fix "Cannot call method add on possibly null value" bug pointed by Psalm 2019-06-20 21:04:44 +02:00
Meritoo
c0998ac5b9 Fix "Argument 1 of DateTime::setdate expects int, string|false provided" bug pointed by Psalm 2019-06-20 20:29:17 +02:00
Meritoo
a1c3ba8543 Fix "Cannot call method sub on possibly null value" bug pointed by Psalm 2019-06-20 20:21:14 +02:00
Meritoo
6efbf940a3 Fix "Found a redundant condition when evaluating docblock-defined type $composerJsonPath and trying to reconcile type 'string' to string" bug pointed by Psalm 2019-06-20 20:05:56 +02:00
Meritoo
1ac1a221ec Minor refactoring 2019-06-20 19:25:34 +02:00
Meritoo
5678b5b22a Fix "Found a contradiction when evaluating $fullBundleName and trying to reconcile type 'string' to !string" bug pointed by Psalm 2019-06-20 18:58:20 +02:00
Meritoo
3b81d0d932 Do not require name of class by BaseTestCaseTrait::assertMethodVisibilityAndArguments() method 2019-06-17 08:43:40 +02:00
Meritoo
2091adc8d0 Collection > trait > return "void" where "self" causes type hinting problem and is not required 2019-05-11 00:19:38 +02:00
Meritoo
e75854feee Collection > trait > split into smaller traits (to make it more flexible) 2019-05-10 23:48:19 +02:00
Meritoo
9a1f49d373 Trait for the Collection > type hinting 2019-05-10 22:17:40 +02:00
Meritoo
98d0fed61d Refactoring 2019-05-05 23:06:18 +02:00
Meritoo
a6b2704c66 BaseType::isCorrectType() method > make static 2019-05-05 23:05:42 +02:00
Meritoo
dd5ac0f7e6 Fix code pointed by Psalm 2019-05-05 09:49:03 +02:00
Meritoo
414ce0fd06 Reflection > getPropertyValue() method > refactoring 2019-04-13 21:38:06 +02:00
Meritoo
a56b325307 Minor refactoring 2019-04-13 18:33:38 +02:00
Meritoo
eb8fa110ad Reflection > getPropertyValue() method > look for the property in parent classes 2019-04-13 18:29:27 +02:00
Meritoo
6f90f5a249 Reflection > fix deprecations 2019-04-13 17:27:06 +02:00
Meritoo
e66cbd54e2 Template with placeholders > verification of placeholders without values > make stronger and point out which are missing 2019-04-10 08:57:33 +02:00
Meritoo
e05bc2302d PHPUnit > increase code coverage 2019-04-06 08:47:26 +02:00
Meritoo
a13a629408 PHP Coding Standards Fixer > fix coding standard 2019-04-06 08:00:01 +02:00
Meritoo
a93355f2c8 RenderableInterface > something that may be rendered 2019-04-02 21:40:50 +02:00
Meritoo
faf1da6134 Collection/storage of templates 2019-04-02 21:08:11 +02:00
Meritoo
0b74f8da6f Template with placeholders that may be filled by real data 2019-04-02 21:03:03 +02:00
Meritoo
8a94241eb8 Regex > make compatible with PHP 7.3
Tests > Regex > fix "preg_match(): Compilation failed: invalid range in character class at offset 4" bug
2019-04-02 15:46:02 +02:00