diff --git a/composer.json b/composer.json index e0d6bb0..73dd169 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "require": { "php": "^7.2", "ext-json": "*", - "mcustiel/phiremock-common": "v1.0.0", + "mcustiel/phiremock-common": "^1.0", "react/http": "^1.0", "monolog/monolog": ">=1.0 <3.0", "symfony/console": ">=3.0 <6.0", diff --git a/composer.lock b/composer.lock index c0361cb..0beaacd 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c4c6f8d83df96a30c280bfb403ba849f", + "content-hash": "8b09548d0a45102d285685c5d33f3d6c", "packages": [ { "name": "evenement/evenement", @@ -47,10 +47,6 @@ "event-dispatcher", "event-emitter" ], - "support": { - "issues": "https://github.com/igorw/evenement/issues", - "source": "https://github.com/igorw/evenement/tree/master" - }, "time": "2017-07-23T21:35:13+00:00" }, { @@ -136,14 +132,6 @@ "psr-17", "psr-7" ], - "support": { - "chat": "https://laminas.dev/chat", - "docs": "https://docs.laminas.dev/laminas-diactoros/", - "forum": "https://discourse.laminas.dev", - "issues": "https://github.com/laminas/laminas-diactoros/issues", - "rss": "https://github.com/laminas/laminas-diactoros/releases.atom", - "source": "https://github.com/laminas/laminas-diactoros" - }, "funding": [ { "url": "https://funding.communitybridge.org/projects/laminas-project", @@ -198,12 +186,6 @@ "laminas", "zf" ], - "support": { - "forum": "https://discourse.laminas.dev/", - "issues": "https://github.com/laminas/laminas-zendframework-bridge/issues", - "rss": "https://github.com/laminas/laminas-zendframework-bridge/releases.atom", - "source": "https://github.com/laminas/laminas-zendframework-bridge" - }, "funding": [ { "url": "https://funding.communitybridge.org/projects/laminas-project", @@ -214,16 +196,16 @@ }, { "name": "mcustiel/phiremock-common", - "version": "v1.0.0", + "version": "v1.0.1", "source": { "type": "git", "url": "https://github.com/mcustiel/phiremock-common.git", - "reference": "ac2c0009533908f0cfbe44a890d7476a20c7dc1d" + "reference": "48c0ec1b21b65e5755206f85674fd479b19d6cde" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mcustiel/phiremock-common/zipball/ac2c0009533908f0cfbe44a890d7476a20c7dc1d", - "reference": "ac2c0009533908f0cfbe44a890d7476a20c7dc1d", + "url": "https://api.github.com/repos/mcustiel/phiremock-common/zipball/48c0ec1b21b65e5755206f85674fd479b19d6cde", + "reference": "48c0ec1b21b65e5755206f85674fd479b19d6cde", "shasum": "" }, "require": { @@ -262,11 +244,7 @@ "server", "tests" ], - "support": { - "issues": "https://github.com/mcustiel/phiremock-common/issues", - "source": "https://github.com/mcustiel/phiremock-common/tree/v1.0.0" - }, - "time": "2020-09-21T18:44:01+00:00" + "time": "2020-11-16T16:37:25+00:00" }, { "name": "monolog/monolog", @@ -347,10 +325,6 @@ "logging", "psr-3" ], - "support": { - "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/2.1.1" - }, "funding": [ { "url": "https://github.com/Seldaek", @@ -407,10 +381,6 @@ "router", "routing" ], - "support": { - "issues": "https://github.com/nikic/FastRoute/issues", - "source": "https://github.com/nikic/FastRoute/tree/master" - }, "time": "2018-02-13T20:26:39+00:00" }, { @@ -460,10 +430,6 @@ "container-interop", "psr" ], - "support": { - "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/master" - }, "time": "2017-02-14T16:28:37+00:00" }, { @@ -513,9 +479,6 @@ "psr", "psr-18" ], - "support": { - "source": "https://github.com/php-fig/http-client/tree/master" - }, "time": "2020-06-29T06:28:15+00:00" }, { @@ -568,9 +531,6 @@ "request", "response" ], - "support": { - "source": "https://github.com/php-fig/http-factory/tree/master" - }, "time": "2019-04-30T12:38:16+00:00" }, { @@ -621,9 +581,6 @@ "request", "response" ], - "support": { - "source": "https://github.com/php-fig/http-message/tree/master" - }, "time": "2016-08-06T14:39:51+00:00" }, { @@ -671,9 +628,6 @@ "psr", "psr-3" ], - "support": { - "source": "https://github.com/php-fig/log/tree/1.1.3" - }, "time": "2020-03-23T09:12:05+00:00" }, { @@ -736,10 +690,6 @@ "promise", "reactphp" ], - "support": { - "issues": "https://github.com/reactphp/cache/issues", - "source": "https://github.com/reactphp/cache/tree/v1.1.0" - }, "funding": [ { "url": "https://github.com/WyriHaximus", @@ -816,10 +766,6 @@ "dns-resolver", "reactphp" ], - "support": { - "issues": "https://github.com/reactphp/dns/issues", - "source": "https://github.com/reactphp/dns/tree/v1.4.0" - }, "funding": [ { "url": "https://github.com/WyriHaximus", @@ -872,10 +818,6 @@ "asynchronous", "event-loop" ], - "support": { - "issues": "https://github.com/reactphp/event-loop/issues", - "source": "https://github.com/reactphp/event-loop/tree/v1.1.1" - }, "time": "2020-01-01T18:39:52+00:00" }, { @@ -956,10 +898,6 @@ "server", "streaming" ], - "support": { - "issues": "https://github.com/reactphp/http/issues", - "source": "https://github.com/reactphp/http/tree/v1.1.0" - }, "funding": [ { "url": "https://github.com/WyriHaximus", @@ -1016,10 +954,6 @@ "promise", "promises" ], - "support": { - "issues": "https://github.com/reactphp/promise/issues", - "source": "https://github.com/reactphp/promise/tree/v2.8.0" - }, "time": "2020-05-12T15:16:56+00:00" }, { @@ -1076,10 +1010,6 @@ "stream", "unwrap" ], - "support": { - "issues": "https://github.com/reactphp/promise-stream/issues", - "source": "https://github.com/reactphp/promise-stream/tree/v1.2.0" - }, "time": "2019-07-03T12:29:10+00:00" }, { @@ -1133,10 +1063,6 @@ "timeout", "timer" ], - "support": { - "issues": "https://github.com/reactphp/promise-timer/issues", - "source": "https://github.com/reactphp/promise-timer/tree/v1.6.0" - }, "time": "2020-07-10T12:18:06+00:00" }, { @@ -1207,10 +1133,6 @@ "reactphp", "stream" ], - "support": { - "issues": "https://github.com/reactphp/socket/issues", - "source": "https://github.com/reactphp/socket/tree/v1.6.0" - }, "funding": [ { "url": "https://github.com/WyriHaximus", @@ -1267,10 +1189,6 @@ "stream", "writable" ], - "support": { - "issues": "https://github.com/reactphp/stream/issues", - "source": "https://github.com/reactphp/stream/tree/v1.1.1" - }, "time": "2020-05-04T10:17:57+00:00" }, { @@ -1329,9 +1247,6 @@ "stream", "uri" ], - "support": { - "source": "https://github.com/ringcentral/psr7/tree/master" - }, "time": "2018-05-29T20:21:04+00:00" }, { @@ -1650,9 +1565,6 @@ "portable", "shim" ], - "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.20.0" - }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -1730,9 +1642,6 @@ "portable", "shim" ], - "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.20.0" - }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -1809,9 +1718,6 @@ "portable", "shim" ], - "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.20.0" - }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -1892,9 +1798,6 @@ "portable", "shim" ], - "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.20.0" - }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -1971,9 +1874,6 @@ "interoperability", "standards" ], - "support": { - "source": "https://github.com/symfony/service-contracts/tree/master" - }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -2140,16 +2040,16 @@ }, { "name": "codeception/codeception", - "version": "4.1.9", + "version": "4.1.12", "source": { "type": "git", "url": "https://github.com/Codeception/Codeception.git", - "reference": "5782e342b978a3efd0b7a776b7808902840b8213" + "reference": "fc550bf6e90d69fbfc8ab7e9e0a330ac98ffafdd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/Codeception/zipball/5782e342b978a3efd0b7a776b7808902840b8213", - "reference": "5782e342b978a3efd0b7a776b7808902840b8213", + "url": "https://api.github.com/repos/Codeception/Codeception/zipball/fc550bf6e90d69fbfc8ab7e9e0a330ac98ffafdd", + "reference": "fc550bf6e90d69fbfc8ab7e9e0a330ac98ffafdd", "shasum": "" }, "require": { @@ -2179,7 +2079,7 @@ "monolog/monolog": "~1.8", "squizlabs/php_codesniffer": "~2.0", "symfony/process": ">=2.7 <6.0", - "vlucas/phpdotenv": "^2.0 | ^3.0 | ^4.0" + "vlucas/phpdotenv": "^2.0 | ^3.0 | ^4.0 | ^5.0" }, "suggest": { "codeception/specify": "BDD-style code blocks", @@ -2221,17 +2121,13 @@ "functional testing", "unit testing" ], - "support": { - "issues": "https://github.com/Codeception/Codeception/issues", - "source": "https://github.com/Codeception/Codeception/tree/4.1.9" - }, "funding": [ { "url": "https://opencollective.com/codeception", "type": "open_collective" } ], - "time": "2020-10-23T17:59:47+00:00" + "time": "2020-11-16T06:36:57+00:00" }, { "name": "codeception/lib-asserts", @@ -2466,23 +2362,23 @@ }, { "name": "codeception/module-rest", - "version": "1.2.5", + "version": "1.2.7", "source": { "type": "git", "url": "https://github.com/Codeception/module-rest.git", - "reference": "15e16e4a9973ffaeffc39208787e60e5d8316788" + "reference": "beeb5a91a97d042273bf10f00063e9b8f541879a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/module-rest/zipball/15e16e4a9973ffaeffc39208787e60e5d8316788", - "reference": "15e16e4a9973ffaeffc39208787e60e5d8316788", + "url": "https://api.github.com/repos/Codeception/module-rest/zipball/beeb5a91a97d042273bf10f00063e9b8f541879a", + "reference": "beeb5a91a97d042273bf10f00063e9b8f541879a", "shasum": "" }, "require": { "codeception/codeception": "^4.0", - "flow/jsonpath": "^0.5", "justinrainbow/json-schema": "~5.2.9", - "php": ">=5.6.0 <9.0" + "php": ">=5.6.0 <9.0", + "softcreatr/jsonpath": "^0.5 || ^0.7" }, "require-dev": { "codeception/lib-innerbrowser": "^1.0", @@ -2512,11 +2408,7 @@ "codeception", "rest" ], - "support": { - "issues": "https://github.com/Codeception/module-rest/issues", - "source": "https://github.com/Codeception/module-rest/tree/1.2.5" - }, - "time": "2020-10-24T15:20:26+00:00" + "time": "2020-11-04T16:58:11+00:00" }, { "name": "codeception/phpunit-wrapper", @@ -2602,36 +2494,31 @@ }, { "name": "doctrine/instantiator", - "version": "1.3.1", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "f350df0268e904597e3bd9c4685c53e0e333feea" + "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/f350df0268e904597e3bd9c4685c53e0e333feea", - "reference": "f350df0268e904597e3bd9c4685c53e0e333feea", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b", + "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b", "shasum": "" }, "require": { "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^6.0", + "doctrine/coding-standard": "^8.0", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^0.13", - "phpstan/phpstan-phpunit": "^0.11", - "phpstan/phpstan-shim": "^0.11", - "phpunit/phpunit": "^7.0" + "phpbench/phpbench": "^0.13 || 1.0.0-alpha2", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-phpunit": "^0.12", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, "autoload": { "psr-4": { "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" @@ -2645,7 +2532,7 @@ { "name": "Marco Pivetta", "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/" + "homepage": "https://ocramius.github.io/" } ], "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", @@ -2654,10 +2541,6 @@ "constructor", "instantiate" ], - "support": { - "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.3.x" - }, "funding": [ { "url": "https://www.doctrine-project.org/sponsorship.html", @@ -2672,53 +2555,7 @@ "type": "tidelift" } ], - "time": "2020-05-29T17:27:14+00:00" - }, - { - "name": "flow/jsonpath", - "version": "0.5.0", - "source": { - "type": "git", - "url": "https://github.com/FlowCommunications/JSONPath.git", - "reference": "b9738858c75d008c1211612b973e9510f8b7f8ea" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/FlowCommunications/JSONPath/zipball/b9738858c75d008c1211612b973e9510f8b7f8ea", - "reference": "b9738858c75d008c1211612b973e9510f8b7f8ea", - "shasum": "" - }, - "require": { - "php": ">=5.4.0" - }, - "require-dev": { - "peekmo/jsonpath": "dev-master", - "phpunit/phpunit": "^7.0" - }, - "type": "library", - "autoload": { - "psr-0": { - "Flow\\JSONPath": "src/", - "Flow\\JSONPath\\Test": "tests/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Stephen Frank", - "email": "stephen@flowsa.com" - } - ], - "description": "JSONPath implementation for parsing, searching and flattening arrays", - "support": { - "issues": "https://github.com/FlowCommunications/JSONPath/issues", - "source": "https://github.com/FlowCommunications/JSONPath/tree/0.5.0" - }, - "abandoned": "softcreatr/jsonpath", - "time": "2019-07-15T17:23:22+00:00" + "time": "2020-11-10T18:47:58+00:00" }, { "name": "guzzlehttp/guzzle", @@ -2785,10 +2622,6 @@ "rest", "web service" ], - "support": { - "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/6.5" - }, "time": "2020-06-16T21:01:06+00:00" }, { @@ -2840,10 +2673,6 @@ "keywords": [ "promise" ], - "support": { - "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/1.4.0" - }, "time": "2020-09-30T07:37:28+00:00" }, { @@ -2915,10 +2744,6 @@ "uri", "url" ], - "support": { - "issues": "https://github.com/guzzle/psr7/issues", - "source": "https://github.com/guzzle/psr7/tree/1.7.0" - }, "time": "2020-09-30T07:37:11+00:00" }, { @@ -2993,16 +2818,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.10.1", + "version": "1.10.2", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5" + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", - "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220", + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220", "shasum": "" }, "require": { @@ -3037,17 +2862,13 @@ "object", "object graph" ], - "support": { - "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.x" - }, "funding": [ { "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", "type": "tidelift" } ], - "time": "2020-06-29T13:22:24+00:00" + "time": "2020-11-13T09:40:50+00:00" }, { "name": "phar-io/manifest", @@ -3659,39 +3480,39 @@ }, { "name": "phpunit/phpunit", - "version": "8.5.8", + "version": "8.5.9", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "34c18baa6a44f1d1fbf0338907139e9dce95b997" + "reference": "f5c8a5dd5e7e8d68d7562bfb48d47287d33937d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/34c18baa6a44f1d1fbf0338907139e9dce95b997", - "reference": "34c18baa6a44f1d1fbf0338907139e9dce95b997", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f5c8a5dd5e7e8d68d7562bfb48d47287d33937d6", + "reference": "f5c8a5dd5e7e8d68d7562bfb48d47287d33937d6", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.2.0", + "doctrine/instantiator": "^1.3.1", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.9.1", + "myclabs/deep-copy": "^1.10.0", "phar-io/manifest": "^1.0.3", "phar-io/version": "^2.0.1", "php": "^7.2", - "phpspec/prophecy": "^1.8.1", - "phpunit/php-code-coverage": "^7.0.7", + "phpspec/prophecy": "^1.10.3", + "phpunit/php-code-coverage": "^7.0.10", "phpunit/php-file-iterator": "^2.0.2", "phpunit/php-text-template": "^1.2.1", "phpunit/php-timer": "^2.1.2", "sebastian/comparator": "^3.0.2", "sebastian/diff": "^3.0.2", - "sebastian/environment": "^4.2.2", - "sebastian/exporter": "^3.1.1", + "sebastian/environment": "^4.2.3", + "sebastian/exporter": "^3.1.2", "sebastian/global-state": "^3.0.0", "sebastian/object-enumerator": "^3.0.3", "sebastian/resource-operations": "^2.0.1", @@ -3738,10 +3559,6 @@ "testing", "xunit" ], - "support": { - "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/8.5" - }, "funding": [ { "url": "https://phpunit.de/donate.html", @@ -3752,7 +3569,7 @@ "type": "github" } ], - "time": "2020-06-22T07:06:58+00:00" + "time": "2020-11-10T12:51:38+00:00" }, { "name": "psr/event-dispatcher", @@ -3842,10 +3659,6 @@ } ], "description": "A polyfill for getallheaders.", - "support": { - "issues": "https://github.com/ralouphie/getallheaders/issues", - "source": "https://github.com/ralouphie/getallheaders/tree/develop" - }, "time": "2019-03-08T08:55:37+00:00" }, { @@ -4511,6 +4324,68 @@ }, "time": "2016-10-03T07:35:21+00:00" }, + { + "name": "softcreatr/jsonpath", + "version": "0.7.2", + "source": { + "type": "git", + "url": "https://github.com/SoftCreatR/JSONPath.git", + "reference": "46689608586a8081be399342755c36e179f3b5fc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/SoftCreatR/JSONPath/zipball/46689608586a8081be399342755c36e179f3b5fc", + "reference": "46689608586a8081be399342755c36e179f3b5fc", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": ">=7.1" + }, + "conflict": { + "phpunit/phpunit": "<7.0 || >= 10.0" + }, + "replace": { + "flow/jsonpath": "*" + }, + "require-dev": { + "phpunit/phpunit": ">=7.0", + "roave/security-advisories": "dev-master", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Flow\\JSONPath\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Stephen Frank", + "email": "stephen@flowsa.com", + "homepage": "https://prismaticbytes.com", + "role": "Developer" + }, + { + "name": "Sascha Greuel", + "email": "hello@1-2.dev", + "homepage": "http://1-2.dev", + "role": "Developer" + } + ], + "description": "JSONPath implementation for parsing, searching and flattening arrays", + "funding": [ + { + "url": "https://github.com/softcreatr", + "type": "github" + } + ], + "time": "2020-10-27T11:37:08+00:00" + }, { "name": "symfony/browser-kit", "version": "v5.1.8", @@ -5081,9 +4956,6 @@ "portable", "shim" ], - "support": { - "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.20.0" - }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -5157,9 +5029,6 @@ "portable", "shim" ], - "support": { - "source": "https://github.com/symfony/polyfill-php72/tree/v1.20.0" - }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -5427,5 +5296,5 @@ "ext-json": "*" }, "platform-dev": [], - "plugin-api-version": "2.0.0" + "plugin-api-version": "1.1.0" } diff --git a/composer.phar.lock b/composer.phar.lock index ca8eb18..7b63e48 100644 --- a/composer.phar.lock +++ b/composer.phar.lock @@ -114,6 +114,10 @@ "rest", "web service" ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/6.5" + }, "time": "2020-06-16T21:01:06+00:00" }, { @@ -165,6 +169,10 @@ "keywords": [ "promise" ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/1.4.0" + }, "time": "2020-09-30T07:37:28+00:00" }, { @@ -236,6 +244,10 @@ "uri", "url" ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/1.7.0" + }, "time": "2020-09-30T07:37:11+00:00" }, { @@ -433,6 +445,10 @@ "server", "tests" ], + "support": { + "issues": "https://github.com/mcustiel/phiremock-common/issues", + "source": "https://github.com/mcustiel/phiremock-common/tree/v1.0.0" + }, "time": "2020-09-21T18:44:01+00:00" }, { @@ -857,6 +873,10 @@ } ], "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, "time": "2019-03-08T08:55:37+00:00" }, { @@ -1548,6 +1568,9 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/console/tree/v4.4.16" + }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -1632,6 +1655,9 @@ "portable", "shim" ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.20.0" + }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -1863,6 +1889,9 @@ "portable", "shim" ], + "support": { + "source": "https://github.com/symfony/polyfill-php72/tree/v1.20.0" + }, "funding": [ { "url": "https://symfony.com/sponsor", @@ -2174,16 +2203,16 @@ }, { "name": "codeception/codeception", - "version": "4.1.9", + "version": "4.1.12", "source": { "type": "git", "url": "https://github.com/Codeception/Codeception.git", - "reference": "5782e342b978a3efd0b7a776b7808902840b8213" + "reference": "fc550bf6e90d69fbfc8ab7e9e0a330ac98ffafdd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/Codeception/zipball/5782e342b978a3efd0b7a776b7808902840b8213", - "reference": "5782e342b978a3efd0b7a776b7808902840b8213", + "url": "https://api.github.com/repos/Codeception/Codeception/zipball/fc550bf6e90d69fbfc8ab7e9e0a330ac98ffafdd", + "reference": "fc550bf6e90d69fbfc8ab7e9e0a330ac98ffafdd", "shasum": "" }, "require": { @@ -2213,7 +2242,7 @@ "monolog/monolog": "~1.8", "squizlabs/php_codesniffer": "~2.0", "symfony/process": ">=2.7 <6.0", - "vlucas/phpdotenv": "^2.0 | ^3.0 | ^4.0" + "vlucas/phpdotenv": "^2.0 | ^3.0 | ^4.0 | ^5.0" }, "suggest": { "codeception/specify": "BDD-style code blocks", @@ -2261,7 +2290,7 @@ "type": "open_collective" } ], - "time": "2020-10-23T17:59:47+00:00" + "time": "2020-11-16T06:36:57+00:00" }, { "name": "codeception/lib-asserts", @@ -2480,23 +2509,23 @@ }, { "name": "codeception/module-rest", - "version": "1.2.5", + "version": "1.2.7", "source": { "type": "git", "url": "https://github.com/Codeception/module-rest.git", - "reference": "15e16e4a9973ffaeffc39208787e60e5d8316788" + "reference": "beeb5a91a97d042273bf10f00063e9b8f541879a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/module-rest/zipball/15e16e4a9973ffaeffc39208787e60e5d8316788", - "reference": "15e16e4a9973ffaeffc39208787e60e5d8316788", + "url": "https://api.github.com/repos/Codeception/module-rest/zipball/beeb5a91a97d042273bf10f00063e9b8f541879a", + "reference": "beeb5a91a97d042273bf10f00063e9b8f541879a", "shasum": "" }, "require": { "codeception/codeception": "^4.0", - "flow/jsonpath": "^0.5", "justinrainbow/json-schema": "~5.2.9", - "php": ">=5.6.0 <9.0" + "php": ">=5.6.0 <9.0", + "softcreatr/jsonpath": "^0.5 || ^0.7" }, "require-dev": { "codeception/lib-innerbrowser": "^1.0", @@ -2526,7 +2555,7 @@ "codeception", "rest" ], - "time": "2020-10-24T15:20:26+00:00" + "time": "2020-11-04T16:58:11+00:00" }, { "name": "codeception/phpunit-wrapper", @@ -2604,36 +2633,31 @@ }, { "name": "doctrine/instantiator", - "version": "1.3.1", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "f350df0268e904597e3bd9c4685c53e0e333feea" + "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/f350df0268e904597e3bd9c4685c53e0e333feea", - "reference": "f350df0268e904597e3bd9c4685c53e0e333feea", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b", + "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b", "shasum": "" }, "require": { "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^6.0", + "doctrine/coding-standard": "^8.0", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^0.13", - "phpstan/phpstan-phpunit": "^0.11", - "phpstan/phpstan-shim": "^0.11", - "phpunit/phpunit": "^7.0" + "phpbench/phpbench": "^0.13 || 1.0.0-alpha2", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-phpunit": "^0.12", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, "autoload": { "psr-4": { "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" @@ -2647,7 +2671,7 @@ { "name": "Marco Pivetta", "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/" + "homepage": "https://ocramius.github.io/" } ], "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", @@ -2670,49 +2694,7 @@ "type": "tidelift" } ], - "time": "2020-05-29T17:27:14+00:00" - }, - { - "name": "flow/jsonpath", - "version": "0.5.0", - "source": { - "type": "git", - "url": "https://github.com/FlowCommunications/JSONPath.git", - "reference": "b9738858c75d008c1211612b973e9510f8b7f8ea" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/FlowCommunications/JSONPath/zipball/b9738858c75d008c1211612b973e9510f8b7f8ea", - "reference": "b9738858c75d008c1211612b973e9510f8b7f8ea", - "shasum": "" - }, - "require": { - "php": ">=5.4.0" - }, - "require-dev": { - "peekmo/jsonpath": "dev-master", - "phpunit/phpunit": "^7.0" - }, - "type": "library", - "autoload": { - "psr-0": { - "Flow\\JSONPath": "src/", - "Flow\\JSONPath\\Test": "tests/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Stephen Frank", - "email": "stephen@flowsa.com" - } - ], - "description": "JSONPath implementation for parsing, searching and flattening arrays", - "abandoned": "softcreatr/jsonpath", - "time": "2019-07-15T17:23:22+00:00" + "time": "2020-11-10T18:47:58+00:00" }, { "name": "justinrainbow/json-schema", @@ -2782,16 +2764,16 @@ }, { "name": "myclabs/deep-copy", - "version": "1.10.1", + "version": "1.10.2", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5" + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", - "reference": "969b211f9a51aa1f6c01d1d2aef56d3bd91598e5", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220", + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220", "shasum": "" }, "require": { @@ -2832,7 +2814,7 @@ "type": "tidelift" } ], - "time": "2020-06-29T13:22:24+00:00" + "time": "2020-11-13T09:40:50+00:00" }, { "name": "phar-io/manifest", @@ -3400,39 +3382,39 @@ }, { "name": "phpunit/phpunit", - "version": "8.5.8", + "version": "8.5.9", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "34c18baa6a44f1d1fbf0338907139e9dce95b997" + "reference": "f5c8a5dd5e7e8d68d7562bfb48d47287d33937d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/34c18baa6a44f1d1fbf0338907139e9dce95b997", - "reference": "34c18baa6a44f1d1fbf0338907139e9dce95b997", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f5c8a5dd5e7e8d68d7562bfb48d47287d33937d6", + "reference": "f5c8a5dd5e7e8d68d7562bfb48d47287d33937d6", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.2.0", + "doctrine/instantiator": "^1.3.1", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.9.1", + "myclabs/deep-copy": "^1.10.0", "phar-io/manifest": "^1.0.3", "phar-io/version": "^2.0.1", "php": "^7.2", - "phpspec/prophecy": "^1.8.1", - "phpunit/php-code-coverage": "^7.0.7", + "phpspec/prophecy": "^1.10.3", + "phpunit/php-code-coverage": "^7.0.10", "phpunit/php-file-iterator": "^2.0.2", "phpunit/php-text-template": "^1.2.1", "phpunit/php-timer": "^2.1.2", "sebastian/comparator": "^3.0.2", "sebastian/diff": "^3.0.2", - "sebastian/environment": "^4.2.2", - "sebastian/exporter": "^3.1.1", + "sebastian/environment": "^4.2.3", + "sebastian/exporter": "^3.1.2", "sebastian/global-state": "^3.0.0", "sebastian/object-enumerator": "^3.0.3", "sebastian/resource-operations": "^2.0.1", @@ -3489,7 +3471,7 @@ "type": "github" } ], - "time": "2020-06-22T07:06:58+00:00" + "time": "2020-11-10T12:51:38+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -4106,6 +4088,68 @@ "homepage": "https://github.com/sebastianbergmann/version", "time": "2016-10-03T07:35:21+00:00" }, + { + "name": "softcreatr/jsonpath", + "version": "0.7.2", + "source": { + "type": "git", + "url": "https://github.com/SoftCreatR/JSONPath.git", + "reference": "46689608586a8081be399342755c36e179f3b5fc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/SoftCreatR/JSONPath/zipball/46689608586a8081be399342755c36e179f3b5fc", + "reference": "46689608586a8081be399342755c36e179f3b5fc", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": ">=7.1" + }, + "conflict": { + "phpunit/phpunit": "<7.0 || >= 10.0" + }, + "replace": { + "flow/jsonpath": "*" + }, + "require-dev": { + "phpunit/phpunit": ">=7.0", + "roave/security-advisories": "dev-master", + "squizlabs/php_codesniffer": "^3.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Flow\\JSONPath\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Stephen Frank", + "email": "stephen@flowsa.com", + "homepage": "https://prismaticbytes.com", + "role": "Developer" + }, + { + "name": "Sascha Greuel", + "email": "hello@1-2.dev", + "homepage": "http://1-2.dev", + "role": "Developer" + } + ], + "description": "JSONPath implementation for parsing, searching and flattening arrays", + "funding": [ + { + "url": "https://github.com/softcreatr", + "type": "github" + } + ], + "time": "2020-10-27T11:37:08+00:00" + }, { "name": "symfony/browser-kit", "version": "v5.1.8", diff --git a/phiremock.phar b/phiremock.phar index 284cf5e..9336194 100755 Binary files a/phiremock.phar and b/phiremock.phar differ diff --git a/tests/acceptance/v1/BodyConditionCest.php b/tests/acceptance/v1/BodyConditionCest.php index 89fd894..eeb391a 100644 --- a/tests/acceptance/v1/BodyConditionCest.php +++ b/tests/acceptance/v1/BodyConditionCest.php @@ -197,6 +197,33 @@ public function responseExpectedWhenRequestBodyEqualsTest(AcceptanceTester $I) $I->seeResponseEquals('Found'); } + public function responseExpectedWhenRequestBodyContainsTest(AcceptanceTester $I) + { + $I->wantTo('see if mocking based in request body equality works'); + + $I->haveHttpHeader('Content-Type', 'application/json'); + $I->sendPOST( + '/__phiremock/expectations', + $I->getPhiremockRequest([ + 'request' => [ + 'body' => ['contains' => 'potato'], + ], + 'response' => [ + 'statusCode' => 201, + 'body' => 'Found', + ], + ]) + ); + + $I->seeResponseCodeIs(201); + + $I->sendPOST('/dontcare', 'tomato potato banana coconut'); + + $I->seeResponseCodeIs(201); + $I->seeResponseEquals('Found'); + } + + public function responseExpectedWhenRequestBodyCaseInsensitiveEqualsTest(AcceptanceTester $I) { $I->wantTo('see if mocking based in request body case insensitive equality works');