Commit Graph

338 Commits

Author SHA1 Message Date
Meritoo
95b0cf6cab Create clear() & limit() methods in BaseCollection class 2021-04-04 23:09:13 +02:00
Meritoo
118fa64772 Increase code coverage of the BaseCollection class 2021-04-04 23:06:36 +02:00
Meritoo
d5542b60e3 Implement methods of CollectionInterface directly in BaseCollection class (instead of traits) 2021-04-04 23:05:42 +02:00
Meritoo
a4d24a788b Reformat code 2021-03-29 21:41:54 +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
1116034fe6 Mark PHPUnit test as risky when it does not have a @covers annotation 2021-03-28 22:19:11 +02:00
Meritoo
64f474fcf1 Change mode of Xdebug to "coverage" in Docker's configuration to make it possible to generate code coverage by PHPUnit 2021-03-28 22:16:04 +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
ab0c0e6e89 Update Changelog 2021-02-20 17:09:11 +01:00
Meritoo
351224f1f9 Use PHP 7.4 while running build in Travis CI 2021-02-20 16:37:06 +01:00
Meritoo
416f0cd8af Do not install hirak/prestissimo package while running build in Travis CI 2021-02-20 16:26:07 +01:00
Meritoo
e38dda200a Use meritoo/php Docker image (instead of deprecated meritoo/php7) 2021-02-20 16:20:57 +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
d8e3d5e7cb Update documentation of BaseCollection class 2019-09-18 15:13:03 +02:00
Meritoo
2fdb18312d Remove project configuration (project files related to IDE) 2019-09-18 14:54:02 +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
1f45d38ab8 Add @internal @coversNothing annotations in PHPUnit tests 2019-09-15 13:33:03 +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
ded1a04900 Add test for the BaseTestCaseTrait trait 2019-09-06 11:58:40 +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
10992570ad Make more readable documentation of Arrays class 2019-08-28 15:44:37 +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
0afcf9843e Make more readable documentation of Regex class 2019-08-27 20:23:28 +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
21bfadf5d6 Increase Mutation Score Indicator (MSI) by removing "src/Type/DatePeriod.php:120 [M] TrueValue" mutant 2019-08-11 12:56:08 +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
fe6ec278e3 Minor refactoring 2019-08-11 12:30:50 +02:00
Meritoo
462625caff Missing test of Reflection::getConstants() method 2019-08-11 12:24:55 +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
a5148de31c Make task with Infection dependent of PHPUnit tests 2019-08-10 21:32:29 +02:00
Meritoo
dabb1e90c3 Update .gitignore, docker-compose.yml, phpunit.xml.dist 2019-08-02 12:35:07 +02:00
Meritoo
79708f4e61 PHP CS Fixer > configuration > make more readable & remove unnecessary code 2019-08-02 12:21:03 +02:00
Meritoo
b251bcec0e Update project configuration (project files related to IDE) 2019-06-20 21:36:31 +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