diff --git a/composer.lock b/composer.lock index 55f87358..46ee6e1c 100644 --- a/composer.lock +++ b/composer.lock @@ -56,16 +56,16 @@ }, { "name": "utopia-php/framework", - "version": "1.0.0", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/utopia-php/http.git", - "reference": "cc880ec41f7f163d4f9956fec26cc6be51b412cf" + "reference": "fc63ec61c720190a5ea5bb484c615145850951e6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/http/zipball/cc880ec41f7f163d4f9956fec26cc6be51b412cf", - "reference": "cc880ec41f7f163d4f9956fec26cc6be51b412cf", + "url": "https://api.github.com/repos/utopia-php/http/zipball/fc63ec61c720190a5ea5bb484c615145850951e6", + "reference": "fc63ec61c720190a5ea5bb484c615145850951e6", "shasum": "" }, "require": { @@ -100,22 +100,22 @@ ], "support": { "issues": "https://github.com/utopia-php/http/issues", - "source": "https://github.com/utopia-php/http/tree/1.0.0" + "source": "https://github.com/utopia-php/http/tree/1.0.2" }, - "time": "2024-09-05T15:38:08+00:00" + "time": "2024-09-10T09:04:19+00:00" }, { "name": "utopia-php/servers", - "version": "0.1.0", + "version": "0.1.1", "source": { "type": "git", "url": "https://github.com/utopia-php/servers.git", - "reference": "7d9e4f364fb1ab1889fb89ca96eb9946467cb09c" + "reference": "fd5c8d32778f265256c1936372a071b944f5ba8a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/servers/zipball/7d9e4f364fb1ab1889fb89ca96eb9946467cb09c", - "reference": "7d9e4f364fb1ab1889fb89ca96eb9946467cb09c", + "url": "https://api.github.com/repos/utopia-php/servers/zipball/fd5c8d32778f265256c1936372a071b944f5ba8a", + "reference": "fd5c8d32778f265256c1936372a071b944f5ba8a", "shasum": "" }, "require": { @@ -153,9 +153,9 @@ ], "support": { "issues": "https://github.com/utopia-php/servers/issues", - "source": "https://github.com/utopia-php/servers/tree/0.1.0" + "source": "https://github.com/utopia-php/servers/tree/0.1.1" }, - "time": "2024-08-08T14:31:39+00:00" + "time": "2024-09-06T02:25:56+00:00" }, { "name": "utopia-php/system", @@ -450,24 +450,24 @@ }, { "name": "composer/semver", - "version": "3.4.2", + "version": "3.4.3", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6" + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/c51258e759afdb17f1fd1fe83bc12baaef6309d6", - "reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6", + "url": "https://api.github.com/repos/composer/semver/zipball/4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", + "reference": "4313d26ada5e0c4edfbd1dc481a92ff7bff91f12", "shasum": "" }, "require": { "php": "^5.3.2 || ^7.0 || ^8.0" }, "require-dev": { - "phpstan/phpstan": "^1.4", - "symfony/phpunit-bridge": "^4.2 || ^5" + "phpstan/phpstan": "^1.11", + "symfony/phpunit-bridge": "^3 || ^7" }, "type": "library", "extra": { @@ -511,7 +511,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.4.2" + "source": "https://github.com/composer/semver/tree/3.4.3" }, "funding": [ { @@ -527,7 +527,7 @@ "type": "tidelift" } ], - "time": "2024-07-12T11:35:52+00:00" + "time": "2024-09-19T14:15:21+00:00" }, { "name": "composer/xdebug-handler", @@ -794,16 +794,16 @@ }, { "name": "felixfbecker/language-server-protocol", - "version": "v1.5.2", + "version": "v1.5.3", "source": { "type": "git", "url": "https://github.com/felixfbecker/php-language-server-protocol.git", - "reference": "6e82196ffd7c62f7794d778ca52b69feec9f2842" + "reference": "a9e113dbc7d849e35b8776da39edaf4313b7b6c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/felixfbecker/php-language-server-protocol/zipball/6e82196ffd7c62f7794d778ca52b69feec9f2842", - "reference": "6e82196ffd7c62f7794d778ca52b69feec9f2842", + "url": "https://api.github.com/repos/felixfbecker/php-language-server-protocol/zipball/a9e113dbc7d849e35b8776da39edaf4313b7b6c9", + "reference": "a9e113dbc7d849e35b8776da39edaf4313b7b6c9", "shasum": "" }, "require": { @@ -844,9 +844,9 @@ ], "support": { "issues": "https://github.com/felixfbecker/php-language-server-protocol/issues", - "source": "https://github.com/felixfbecker/php-language-server-protocol/tree/v1.5.2" + "source": "https://github.com/felixfbecker/php-language-server-protocol/tree/v1.5.3" }, - "time": "2022-03-02T22:36:06+00:00" + "time": "2024-04-30T00:40:11+00:00" }, { "name": "laravel/pint", @@ -916,16 +916,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.12.0", + "version": "1.12.1", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" + "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/123267b2c49fbf30d78a7b2d333f6be754b94845", + "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845", "shasum": "" }, "require": { @@ -964,7 +964,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.12.1" }, "funding": [ { @@ -972,7 +972,7 @@ "type": "tidelift" } ], - "time": "2024-06-12T14:39:25+00:00" + "time": "2024-11-08T17:47:46+00:00" }, { "name": "netresearch/jsonmapper", @@ -1027,16 +1027,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.19.1", + "version": "v4.19.4", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b" + "reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4e1b88d21c69391150ace211e9eaf05810858d0b", - "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/715f4d25e225bc47b293a8b997fe6ce99bf987d2", + "reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2", "shasum": "" }, "require": { @@ -1045,7 +1045,7 @@ }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" }, "bin": [ "bin/php-parse" @@ -1077,9 +1077,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.4" }, - "time": "2024-03-17T08:10:35+00:00" + "time": "2024-09-29T15:01:53+00:00" }, { "name": "openlss/lib-array2xml", @@ -1307,16 +1307,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.4.1", + "version": "5.6.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c" + "reference": "f3558a4c23426d12bffeaab463f8a8d8b681193c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", - "reference": "9d07b3f7fdcf5efec5d1609cba3c19c5ea2bdc9c", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/f3558a4c23426d12bffeaab463f8a8d8b681193c", + "reference": "f3558a4c23426d12bffeaab463f8a8d8b681193c", "shasum": "" }, "require": { @@ -1325,17 +1325,17 @@ "php": "^7.4 || ^8.0", "phpdocumentor/reflection-common": "^2.2", "phpdocumentor/type-resolver": "^1.7", - "phpstan/phpdoc-parser": "^1.7", + "phpstan/phpdoc-parser": "^1.7|^2.0", "webmozart/assert": "^1.9.1" }, "require-dev": { - "mockery/mockery": "~1.3.5", + "mockery/mockery": "~1.3.5 || ~1.6.0", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^1.8", "phpstan/phpstan-mockery": "^1.1", "phpstan/phpstan-webmozart-assert": "^1.2", "phpunit/phpunit": "^9.5", - "vimeo/psalm": "^5.13" + "psalm/phar": "^5.26" }, "type": "library", "extra": { @@ -1365,29 +1365,29 @@ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "support": { "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.4.1" + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.6.0" }, - "time": "2024-05-21T05:55:05+00:00" + "time": "2024-11-12T11:25:25+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "1.8.2", + "version": "1.10.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "153ae662783729388a584b4361f2545e4d841e3c" + "reference": "679e3ce485b99e84c775d28e2e96fade9a7fb50a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/153ae662783729388a584b4361f2545e4d841e3c", - "reference": "153ae662783729388a584b4361f2545e4d841e3c", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/679e3ce485b99e84c775d28e2e96fade9a7fb50a", + "reference": "679e3ce485b99e84c775d28e2e96fade9a7fb50a", "shasum": "" }, "require": { "doctrine/deprecations": "^1.0", "php": "^7.3 || ^8.0", "phpdocumentor/reflection-common": "^2.0", - "phpstan/phpdoc-parser": "^1.13" + "phpstan/phpdoc-parser": "^1.18|^2.0" }, "require-dev": { "ext-tokenizer": "*", @@ -1423,36 +1423,36 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.8.2" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.10.0" }, - "time": "2024-02-23T11:10:43+00:00" + "time": "2024-11-09T15:12:26+00:00" }, { "name": "phpstan/phpdoc-parser", - "version": "1.30.0", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "5ceb0e384997db59f38774bf79c2a6134252c08f" + "reference": "c00d78fb6b29658347f9d37ebe104bffadf36299" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/5ceb0e384997db59f38774bf79c2a6134252c08f", - "reference": "5ceb0e384997db59f38774bf79c2a6134252c08f", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/c00d78fb6b29658347f9d37ebe104bffadf36299", + "reference": "c00d78fb6b29658347f9d37ebe104bffadf36299", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0" + "php": "^7.4 || ^8.0" }, "require-dev": { "doctrine/annotations": "^2.0", - "nikic/php-parser": "^4.15", + "nikic/php-parser": "^5.3.0", "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^1.5", - "phpstan/phpstan-phpunit": "^1.1", - "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^9.5", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6", "symfony/process": "^5.2" }, "type": "library", @@ -1470,9 +1470,9 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.30.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/2.0.0" }, - "time": "2024-08-29T09:54:52+00:00" + "time": "2024-10-13T11:29:49+00:00" }, { "name": "phpunit/php-code-coverage", @@ -1795,16 +1795,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.6.20", + "version": "9.6.21", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "49d7820565836236411f5dc002d16dd689cde42f" + "reference": "de6abf3b6f8dd955fac3caad3af7a9504e8c2ffa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/49d7820565836236411f5dc002d16dd689cde42f", - "reference": "49d7820565836236411f5dc002d16dd689cde42f", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/de6abf3b6f8dd955fac3caad3af7a9504e8c2ffa", + "reference": "de6abf3b6f8dd955fac3caad3af7a9504e8c2ffa", "shasum": "" }, "require": { @@ -1819,7 +1819,7 @@ "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2.31", + "phpunit/php-code-coverage": "^9.2.32", "phpunit/php-file-iterator": "^3.0.6", "phpunit/php-invoker": "^3.1.1", "phpunit/php-text-template": "^2.0.4", @@ -1878,7 +1878,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.20" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.21" }, "funding": [ { @@ -1894,7 +1894,7 @@ "type": "tidelift" } ], - "time": "2024-07-10T11:45:39+00:00" + "time": "2024-09-19T10:50:18+00:00" }, { "name": "psr/container", @@ -2964,16 +2964,16 @@ }, { "name": "symfony/console", - "version": "v5.4.43", + "version": "v5.4.47", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "e86f8554de667c16dde8aeb89a3990cfde924df9" + "reference": "c4ba980ca61a9eb18ee6bcc73f28e475852bb1ed" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/e86f8554de667c16dde8aeb89a3990cfde924df9", - "reference": "e86f8554de667c16dde8aeb89a3990cfde924df9", + "url": "https://api.github.com/repos/symfony/console/zipball/c4ba980ca61a9eb18ee6bcc73f28e475852bb1ed", + "reference": "c4ba980ca61a9eb18ee6bcc73f28e475852bb1ed", "shasum": "" }, "require": { @@ -3043,7 +3043,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.4.43" + "source": "https://github.com/symfony/console/tree/v5.4.47" }, "funding": [ { @@ -3059,20 +3059,20 @@ "type": "tidelift" } ], - "time": "2024-08-13T16:31:56+00:00" + "time": "2024-11-06T11:30:55+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.5.0", + "version": "v3.5.1", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1" + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", - "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", + "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", "shasum": "" }, "require": { @@ -3110,7 +3110,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1" }, "funding": [ { @@ -3126,24 +3126,24 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2024-09-25T14:20:29+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.30.0", + "version": "v1.31.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "0424dff1c58f028c451efff2045f5d92410bd540" + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/0424dff1c58f028c451efff2045f5d92410bd540", - "reference": "0424dff1c58f028c451efff2045f5d92410bd540", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638", + "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "provide": { "ext-ctype": "*" @@ -3189,7 +3189,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.31.0" }, "funding": [ { @@ -3205,24 +3205,24 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.30.0", + "version": "v1.31.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a" + "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/64647a7c30b2283f5d49b874d84a18fc22054b7a", - "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", + "reference": "b9123926e3b7bc2f98c02ad54f6a4b02b91a8abe", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "suggest": { "ext-intl": "For best performance" @@ -3267,7 +3267,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.31.0" }, "funding": [ { @@ -3283,24 +3283,24 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.30.0", + "version": "v1.31.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb" + "reference": "3833d7255cc303546435cb650316bff708a1c75c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/a95281b0be0d9ab48050ebd988b967875cdb9fdb", - "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", + "reference": "3833d7255cc303546435cb650316bff708a1c75c", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "suggest": { "ext-intl": "For best performance" @@ -3348,7 +3348,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.31.0" }, "funding": [ { @@ -3364,24 +3364,24 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.30.0", + "version": "v1.31.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c" + "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fd22ab50000ef01661e2a31d850ebaa297f8e03c", - "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", + "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "provide": { "ext-mbstring": "*" @@ -3428,7 +3428,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" }, "funding": [ { @@ -3444,24 +3444,24 @@ "type": "tidelift" } ], - "time": "2024-06-19T12:30:46+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.30.0", + "version": "v1.31.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "ec444d3f3f6505bb28d11afa41e75faadebc10a1" + "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/ec444d3f3f6505bb28d11afa41e75faadebc10a1", - "reference": "ec444d3f3f6505bb28d11afa41e75faadebc10a1", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/0f68c03565dcaaf25a890667542e8bd75fe7e5bb", + "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "type": "library", "extra": { @@ -3504,7 +3504,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-php73/tree/v1.31.0" }, "funding": [ { @@ -3520,24 +3520,24 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.30.0", + "version": "v1.31.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "77fa7995ac1b21ab60769b7323d600a991a90433" + "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433", - "reference": "77fa7995ac1b21ab60769b7323d600a991a90433", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=7.2" }, "type": "library", "extra": { @@ -3584,7 +3584,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.30.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0" }, "funding": [ { @@ -3600,20 +3600,20 @@ "type": "tidelift" } ], - "time": "2024-05-31T15:07:36+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.5.0", + "version": "v3.5.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f" + "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", - "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/e53260aabf78fb3d63f8d79d69ece59f80d5eda0", + "reference": "e53260aabf78fb3d63f8d79d69ece59f80d5eda0", "shasum": "" }, "require": { @@ -3667,7 +3667,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.5.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.5.1" }, "funding": [ { @@ -3683,20 +3683,20 @@ "type": "tidelift" } ], - "time": "2024-04-18T09:32:20+00:00" + "time": "2024-09-25T14:20:29+00:00" }, { "name": "symfony/string", - "version": "v6.4.11", + "version": "v6.4.15", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "5bc3eb632cf9c8dbfd6529d89be9950d1518883b" + "reference": "73a5e66ea2e1677c98d4449177c5a9cf9d8b4c6f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/5bc3eb632cf9c8dbfd6529d89be9950d1518883b", - "reference": "5bc3eb632cf9c8dbfd6529d89be9950d1518883b", + "url": "https://api.github.com/repos/symfony/string/zipball/73a5e66ea2e1677c98d4449177c5a9cf9d8b4c6f", + "reference": "73a5e66ea2e1677c98d4449177c5a9cf9d8b4c6f", "shasum": "" }, "require": { @@ -3753,7 +3753,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.4.11" + "source": "https://github.com/symfony/string/tree/v6.4.15" }, "funding": [ { @@ -3769,7 +3769,7 @@ "type": "tidelift" } ], - "time": "2024-08-12T09:55:28+00:00" + "time": "2024-11-13T13:31:12+00:00" }, { "name": "theseer/tokenizer", @@ -3890,10 +3890,10 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.x-dev", - "dev-3.x": "3.x-dev", + "dev-1.x": "1.x-dev", "dev-2.x": "2.x-dev", - "dev-1.x": "1.x-dev" + "dev-3.x": "3.x-dev", + "dev-master": "4.x-dev" } }, "autoload": { @@ -4082,7 +4082,7 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, "platform": { @@ -4095,6 +4095,6 @@ "ext-snappy": "*", "php": ">=8.0" }, - "platform-dev": [], + "platform-dev": {}, "plugin-api-version": "2.6.0" } diff --git a/phpunit.xml b/phpunit.xml index 1eb9dd9d..49774ae9 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -9,7 +9,6 @@ stopOnFailure="false"> - ./tests/Storage/Compression ./tests/Storage/Device/LocalTest.php ./tests/Storage/Validator ./tests/Storage/StorageTest.php diff --git a/src/Storage/Compression/Algorithms/Brotli.php b/src/Storage/Compression/Algorithms/Brotli.php deleted file mode 100644 index e82c49cc..00000000 --- a/src/Storage/Compression/Algorithms/Brotli.php +++ /dev/null @@ -1,104 +0,0 @@ -level; - } - - /** - * Sets the brotli compression mode to generic. - * - * This is the default mode - */ - public function useGenericMode(): void - { - $this->mode = BROTLI_GENERIC; - } - - /** - * Sets the brotli compression mode to UTF-8 text mode. - * - * Optimizes compression for UTF-8 formatted text - * - * @link https://github.com/kjdev/php-ext-brotli#parameters - */ - public function useTextMode(): void - { - $this->mode = BROTLI_TEXT; - } - - /** - * Sets the brotli compression mode to font mode. - * - * Optimized compression for WOFF 2.0 Fonts - * - * @link https://github.com/kjdev/php-ext-brotli#parameters - */ - public function useFontMode(): void - { - $this->mode = BROTLI_FONT; - } - - /** - * Set the compression level. - * - * Allow values from 0 up to a current max of 11. - * - * @param int $level - * @return void - */ - public function setLevel(int $level): void - { - $min = BROTLI_COMPRESS_LEVEL_MIN; - $max = BROTLI_COMPRESS_LEVEL_MAX; - if ($level < $min || $level > $max) { - throw new \InvalidArgumentException("Level must be between {$min} and {$max}"); - } - $this->level = $level; // $level; - } - - /** - * Compress. - * - * @param string $data - * @return string - */ - public function compress(string $data): string - { - return \brotli_compress($data, $this->getLevel(), $this->mode); - } - - /** - * Decompress. - * - * @param string $data - * @return string - */ - public function decompress(string $data): string - { - return \brotli_uncompress($data); - } -} diff --git a/src/Storage/Compression/Algorithms/GZIP.php b/src/Storage/Compression/Algorithms/GZIP.php deleted file mode 100644 index e047a266..00000000 --- a/src/Storage/Compression/Algorithms/GZIP.php +++ /dev/null @@ -1,43 +0,0 @@ -level = $level; - } - - /** - * Get the compression level. - * - * @return int - */ - public function getLevel(): int - { - return $this->level; - } - - /** - * Set the compression level. - * - * Allow values from 0 up to a current max of 12. - * - * @param int $level - * @return void - */ - public function setLevel(int $level): void - { - if ($level < 0 || $level > 12) { - throw new \InvalidArgumentException('Level must be between 0 and 12'); - } - $this->level = $level; - } - - /** - * Get the name of the algorithm. - * - * @return string - */ - public function getName(): string - { - return 'lz4'; - } - - /** - * Compress. - * - * @param string $data - * @return string - */ - public function compress(string $data): string - { - return \lz4_compress($data, $this->level); - } - - /** - * Decompress. - * - * @param string $data - * @return string - */ - public function decompress(string $data): string - { - return \lz4_uncompress($data); - } -} diff --git a/src/Storage/Compression/Algorithms/Snappy.php b/src/Storage/Compression/Algorithms/Snappy.php deleted file mode 100644 index 32af571f..00000000 --- a/src/Storage/Compression/Algorithms/Snappy.php +++ /dev/null @@ -1,38 +0,0 @@ -= 20 should be used with caution, as they require more memory. - * - * Default value is 3. - */ - protected int $level = 3; - - public function __construct(int $level = 3) - { - $this->level = $level; - } - - /** - * Get the compression level. - * - * @return int - */ - public function getLevel(): int - { - return $this->level; - } - - /** - * Set the compression level. - * - * Allow values from 1 up to a current max of 22. - * - * @param int $level - * @return void - */ - public function setLevel(int $level): void - { - if ($level < 1 || $level > 22) { - throw new \InvalidArgumentException('Level must be between 1 and 22'); - } - $this->level = $level; - } - - /** - * Get the name of the algorithm. - * - * @return string - */ - public function getName(): string - { - return 'zstd'; - } - - /** - * Compress. - * - * @param string $data - * @return string - */ - public function compress(string $data): string - { - return \zstd_compress($data, $this->level); - } - - /** - * Decompress. - * - * @param string $data - * @return string - */ - public function decompress(string $data): string - { - return \zstd_uncompress($data); - } -} diff --git a/src/Storage/Compression/Compression.php b/src/Storage/Compression/Compression.php deleted file mode 100644 index 57b57d90..00000000 --- a/src/Storage/Compression/Compression.php +++ /dev/null @@ -1,39 +0,0 @@ -object = new Brotli(); - } - - public function tearDown(): void - { - } - - public function testName() - { - $this->assertEquals($this->object->getName(), 'brotli'); - } - - public function testErrorsWhenSettingLevel() - { - $this->expectException(InvalidArgumentException::class); - $this->object->setLevel(-1); - } - - public function testCompressDecompressWithText() - { - $demo = 'This is a demo string'; - $demoSize = mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($demoSize, 21); - $this->assertEquals($dataSize, 25); - - $this->assertEquals($this->object->decompress($data), $demo); - } - - public function testCompressDecompressWithLargeText() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/lorem.txt'); - $demoSize = mb_strlen($demo, '8bit'); - - $this->object->setLevel(8); - $data = $this->object->compress($demo); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($demoSize, 386795); - $this->assertEquals($dataSize, 33128); - - $this->assertGreaterThan($dataSize, $demoSize); - - $data = $this->object->decompress($data); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($dataSize, 386795); - $this->assertEquals($data, $demo); - } - - public function testCompressDecompressWithJPGImage() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/kitten-1.jpg'); - $demoSize = mb_strlen($demo, '8bit'); - - $this->object->setLevel(8); - $data = $this->object->compress($demo); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($demoSize, 599639); - // brotli is not the best for images - $this->assertEquals($dataSize, 599644); - - $data = $this->object->decompress($data); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($dataSize, 599639); - } - - public function testCompressDecompressWithPNGImage() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-b/kitten-1.png'); - $demoSize = mb_strlen($demo, '8bit'); - - $this->object->setLevel(8); - $data = $this->object->compress($demo); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($demoSize, 3038056); - // brotli is not the best for images - $this->assertEquals($dataSize, 3038068); - - $data = $this->object->decompress($data); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($dataSize, 3038056); - } -} diff --git a/tests/Storage/Compression/Algorithms/GZIPTest.php b/tests/Storage/Compression/Algorithms/GZIPTest.php deleted file mode 100644 index 1f5a8446..00000000 --- a/tests/Storage/Compression/Algorithms/GZIPTest.php +++ /dev/null @@ -1,99 +0,0 @@ -object = new GZIP(); - } - - public function tearDown(): void - { - } - - public function testName() - { - $this->assertEquals($this->object->getName(), 'gzip'); - } - - public function testCompressDecompressWithText() - { - $demo = 'This is a demo string'; - $demoSize = mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($demoSize, 21); - $this->assertEquals($dataSize, 39); - - $this->assertEquals($this->object->decompress($data), $demo); - } - - public function testCompressDecompressWithLargeText() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/lorem.txt'); - $demoSize = mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($demoSize, 386795); - $this->assertEquals($dataSize, 44444); - - $this->assertGreaterThan($dataSize, $demoSize); - - $data = $this->object->decompress($data); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($dataSize, 386795); - } - - public function testCompressDecompressWithJPGImage() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/kitten-1.jpg'); - $demoSize = mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($demoSize, 599639); - $this->assertEquals($dataSize, 599107); - - $this->assertGreaterThan($dataSize, $demoSize); - - $data = $this->object->decompress($data); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($dataSize, 599639); - } - - public function testCompressDecompressWithPNGImage() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-b/kitten-1.png'); - $demoSize = mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($demoSize, 3038056); - $this->assertEquals($dataSize, 3029202); - - $this->assertGreaterThan($dataSize, $demoSize); - - $data = $this->object->decompress($data); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($dataSize, 3038056); - } -} diff --git a/tests/Storage/Compression/Algorithms/LZ4Test.php b/tests/Storage/Compression/Algorithms/LZ4Test.php deleted file mode 100644 index 9d66ee85..00000000 --- a/tests/Storage/Compression/Algorithms/LZ4Test.php +++ /dev/null @@ -1,77 +0,0 @@ -object = new LZ4(); - } - - public function tearDown(): void - { - } - - public function testName() - { - $this->assertEquals($this->object->getName(), 'lz4'); - } - - public function testCompressDecompressWithText() - { - $demo = 'This is a demo string'; - $demoSize = \mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(21, $demoSize); - $this->assertEquals(27, $dataSize); - - $this->assertEquals($demo, $this->object->decompress($data)); - } - - public function testCompressDecompressWithJPGImage() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/kitten-1.jpg'); - $demoSize = \mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(599639, $demoSize); - $this->assertEquals(601828, $dataSize); - - $this->assertGreaterThan($demoSize, $dataSize); - - $data = $this->object->decompress($data); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(599639, $dataSize); - } - - public function testCompressDecompressWithPNGImage() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-b/kitten-1.png'); - $demoSize = \mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(3038056, $demoSize); - $this->assertEquals(3049975, $dataSize); - - $this->assertGreaterThan($demoSize, $dataSize); - - $data = $this->object->decompress($data); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(3038056, $dataSize); - } -} diff --git a/tests/Storage/Compression/Algorithms/SnappyTest.php b/tests/Storage/Compression/Algorithms/SnappyTest.php deleted file mode 100644 index 3a752e92..00000000 --- a/tests/Storage/Compression/Algorithms/SnappyTest.php +++ /dev/null @@ -1,81 +0,0 @@ -object = new Snappy(); - } - - public function tearDown(): void - { - } - - public function testName() - { - $this->assertEquals($this->object->getName(), 'snappy'); - } - - public function testCompressDecompressWithText() - { - $demo = 'This is a demo string'; - $demoSize = \mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(21, $demoSize); - $this->assertEquals(23, $dataSize); - - $this->assertEquals($this->object->decompress($data), $demo); - } - - public function testCompressDecompressWithJPGImage() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/kitten-1.jpg'); - $demoSize = \mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(599639, $demoSize); - $this->assertEquals(599504, $dataSize); - - $this->assertGreaterThan($dataSize, $demoSize); - - $data = $this->object->decompress($data); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(599639, $dataSize); - } - - public function testCompressDecompressWithPNGImage() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-b/kitten-1.png'); - $demoSize = \mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(3038056, $demoSize); - $this->assertEquals(3038200, $dataSize); - - $this->assertGreaterThan($demoSize, $dataSize); - - $data = $this->object->decompress($data); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(3038056, $dataSize); - } -} diff --git a/tests/Storage/Compression/Algorithms/XZTest.php b/tests/Storage/Compression/Algorithms/XZTest.php deleted file mode 100644 index 2b55ee01..00000000 --- a/tests/Storage/Compression/Algorithms/XZTest.php +++ /dev/null @@ -1,77 +0,0 @@ -object = new XZ(); - } - - public function tearDown(): void - { - } - - public function testName() - { - $this->assertEquals($this->object->getName(), 'xz'); - } - - public function testCompressDecompressWithText() - { - $demo = 'This is a demo string'; - $demoSize = mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($demoSize, 21); - $this->assertEquals($dataSize, 80); - - $this->assertEquals($this->object->decompress($data), $demo); - } - - public function testCompressDecompressWithJPGImage() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/kitten-1.jpg'); - $demoSize = mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($demoSize, 599639); - $this->assertEquals($dataSize, 599432); - - $this->assertGreaterThan($dataSize, $demoSize); - - $data = $this->object->decompress($data); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($dataSize, 599639); - } - - public function testCompressDecompressWithPNGImage() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-b/kitten-1.png'); - $demoSize = mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($demoSize, 3038056); - $this->assertEquals($dataSize, 2981000); - - $this->assertGreaterThan($dataSize, $demoSize); - - $data = $this->object->decompress($data); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($dataSize, 3038056); - } -} diff --git a/tests/Storage/Compression/Algorithms/ZstdTest.php b/tests/Storage/Compression/Algorithms/ZstdTest.php deleted file mode 100644 index 488cd290..00000000 --- a/tests/Storage/Compression/Algorithms/ZstdTest.php +++ /dev/null @@ -1,96 +0,0 @@ -object = new Zstd(); - } - - public function tearDown(): void - { - } - - public function testName() - { - $this->assertEquals($this->object->getName(), 'zstd'); - } - - public function testCompressDecompressWithText() - { - $demo = 'This is a demo string'; - $demoSize = \mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(21, $demoSize); - $this->assertEquals(30, $dataSize); - - $this->assertEquals($demo, $this->object->decompress($data)); - } - - public function testCompressDecompressWithLargeText() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/lorem.txt'); - $demoSize = mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($demoSize, 386795); - $this->assertEquals($dataSize, 56324); - - $this->assertGreaterThan($dataSize, $demoSize); - - $data = $this->object->decompress($data); - $dataSize = mb_strlen($data, '8bit'); - - $this->assertEquals($dataSize, 386795); - } - - public function testCompressDecompressWithJPGImage() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-a/kitten-1.jpg'); - $demoSize = \mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(599639, $demoSize); - $this->assertEquals(599663, $dataSize); - - $this->assertGreaterThan($demoSize, $dataSize); - - $data = $this->object->decompress($data); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(599639, $dataSize); - } - - public function testCompressDecompressWithPNGImage() - { - $demo = \file_get_contents(__DIR__.'/../../../resources/disk-b/kitten-1.png'); - $demoSize = \mb_strlen($demo, '8bit'); - - $data = $this->object->compress($demo); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(3038056, $demoSize); - $this->assertEquals(3038138, $dataSize); - - $this->assertGreaterThan($demoSize, $dataSize); - - $data = $this->object->decompress($data); - $dataSize = \mb_strlen($data, '8bit'); - - $this->assertEquals(3038056, $dataSize); - } -}