Commit Graph

365 Commits

Author SHA1 Message Date
xevolic
d392b20570 Merge pull request #1 from meritoo/master
[UW-2934] Merge official version 1.1.x
2023-03-09 12:52:26 +01:00
Meritoo
cddafc3604 Update Changelog 2022-09-10 18:10:51 +02:00
Meritoo
08a2d0878f Interfaces of different types of collections. May be used to build specific collections. 2022-09-10 18:06:25 +02:00
Meritoo
d4cb732096 Migrate PHPUnit configuration file to current format 2022-09-10 13:44:22 +02:00
Meritoo
5ebf624b7b Replace deprecated assertRegExp() function with assertMatchesRegularExpression() in PHPUnit tests (after upgrade of PHPUnit 8.x -> 9.x) 2022-09-10 13:44:22 +02:00
Meritoo
bbc5f6a43d Bump PHP version to 7.4 (from 7.2) 2022-09-10 13:02:02 +02:00
Meritoo
41ef088ffe Upgrade all dev packages (to the latest, stable versions for PHP 7.4) 2022-09-10 13:01:10 +02:00
Meritoo
a3adae50b8 Reformat code automatically 2022-02-12 14:46:47 +01:00
Meritoo
a3af138f0c Update documentation for Infection (Mutation Testing) and use the "nproc" command that returns the number of processors available 2022-02-12 13:33:30 +01:00
Meritoo
31a7ca6d1a [Arrays] Improve tests of function that returns elements from given level 2022-02-06 18:08:22 +01:00
Meritoo
ba24e2de23 [Arrays] Allow to define a key of next level elements in a function that returns elements from given level 2022-02-06 15:29:20 +01:00
Meritoo
ae72d582e6 Reformat code 2022-02-05 21:24:19 +01:00
Meritoo
067be1ab1d [Arrays] Function that returns elements from given level 2022-02-05 19:50:36 +01:00
Meritoo
151ce39226 Fix "str_replace(): Argument #2 ($replace) must be of type array|string, int given" TypeError while running test of Meritoo\Common\ValueObject\Template::fill() 2022-02-05 16:57:12 +01:00
Meritoo
feb8fc293b Fix "floor(): Argument #1 ($num) must be of type int|float, string given" TypeError while running test of Meritoo\Common\Utilities\Miscellaneous::isDecimal() 2022-02-05 16:54:36 +01:00
Meritoo
fcaae95810 [BaseCollection] Prepare elements while adding them by addMultiple() method in the same way as passing them in constructor 2021-04-27 22:13:11 +02:00
Meritoo
a459bfe1ce Use larger collection while testing the BaseCollection class 2021-04-11 22:22:36 +02:00
Meritoo
1eb86cf102 [BaseCollection] Fix incorrectly working limit() method 2021-04-11 22:16:34 +02:00
Meritoo
0d3265d7b6 Increase code coverage of the BaseTestCaseTrait 2021-04-04 23:26:35 +02:00
Meritoo
598f1731be Add missing "declare(strict_types=1)" 2021-04-04 23:09:50 +02:00
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