diff --git a/.travis.yml b/.travis.yml
index 777f9e2..cebcba7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,7 @@
language: php
php:
- - 7.1
- - 7.2
- 7.3
- 7.4
+ - 8.0
install: composer install
script: composer run test
diff --git a/composer.json b/composer.json
index 475a190..e46de3d 100755
--- a/composer.json
+++ b/composer.json
@@ -9,13 +9,13 @@
}
],
"require": {
- "php": "~7.1",
- "guzzlehttp/guzzle": "~6.0"
+ "php": ">=7.3",
+ "guzzlehttp/guzzle": "~7.3"
},
"require-dev": {
- "squizlabs/php_codesniffer": "~2.8",
- "phpunit/phpunit": ">=6.0 <9.0",
- "mockery/mockery": "^0.9.9"
+ "squizlabs/php_codesniffer": "~3.6.0",
+ "phpunit/phpunit": ">=6.0",
+ "mockery/mockery": "^1.4.3"
},
"autoload": {
"psr-4": {
diff --git a/composer.lock b/composer.lock
index ed36b7d..e2831a9 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,41 +4,48 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "dd064c6c92d6ddcbec7ce070eca16bd8",
+ "content-hash": "d2f6638babe4ac0fe4dc106871d9de27",
"packages": [
{
"name": "guzzlehttp/guzzle",
- "version": "6.5.3",
+ "version": "7.3.0",
"source": {
"type": "git",
"url": "https://github.com/guzzle/guzzle.git",
- "reference": "aab4ebd862aa7d04f01a4b51849d657db56d882e"
+ "reference": "7008573787b430c1c1f650e3722d9bba59967628"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/aab4ebd862aa7d04f01a4b51849d657db56d882e",
- "reference": "aab4ebd862aa7d04f01a4b51849d657db56d882e",
+ "url": "https://api.github.com/repos/guzzle/guzzle/zipball/7008573787b430c1c1f650e3722d9bba59967628",
+ "reference": "7008573787b430c1c1f650e3722d9bba59967628",
"shasum": ""
},
"require": {
"ext-json": "*",
- "guzzlehttp/promises": "^1.0",
- "guzzlehttp/psr7": "^1.6.1",
- "php": ">=5.5",
- "symfony/polyfill-intl-idn": "^1.11"
+ "guzzlehttp/promises": "^1.4",
+ "guzzlehttp/psr7": "^1.7 || ^2.0",
+ "php": "^7.2.5 || ^8.0",
+ "psr/http-client": "^1.0"
+ },
+ "provide": {
+ "psr/http-client-implementation": "1.0"
},
"require-dev": {
+ "bamarni/composer-bin-plugin": "^1.4.1",
"ext-curl": "*",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
+ "php-http/client-integration-tests": "^3.0",
+ "phpunit/phpunit": "^8.5.5 || ^9.3.5",
"psr/log": "^1.1"
},
"suggest": {
+ "ext-curl": "Required for CURL handler support",
+ "ext-intl": "Required for Internationalized Domain Name (IDN) support",
"psr/log": "Required for using the Log middleware"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "6.5-dev"
+ "dev-master": "7.3-dev"
}
},
"autoload": {
@@ -58,6 +65,11 @@
"name": "Michael Dowling",
"email": "mtdowling@gmail.com",
"homepage": "https://github.com/mtdowling"
+ },
+ {
+ "name": "Márk Sági-Kazár",
+ "email": "mark.sagikazar@gmail.com",
+ "homepage": "https://sagikazarmark.hu"
}
],
"description": "Guzzle is a PHP HTTP client library",
@@ -68,30 +80,54 @@
"framework",
"http",
"http client",
+ "psr-18",
+ "psr-7",
"rest",
"web service"
],
- "time": "2020-04-18T10:38:46+00:00"
+ "support": {
+ "issues": "https://github.com/guzzle/guzzle/issues",
+ "source": "https://github.com/guzzle/guzzle/tree/7.3.0"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/GrahamCampbell",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/Nyholm",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/alexeyshockov",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/gmponos",
+ "type": "github"
+ }
+ ],
+ "time": "2021-03-23T11:33:13+00:00"
},
{
"name": "guzzlehttp/promises",
- "version": "v1.3.1",
+ "version": "1.4.1",
"source": {
"type": "git",
"url": "https://github.com/guzzle/promises.git",
- "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646"
+ "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646",
- "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646",
+ "url": "https://api.github.com/repos/guzzle/promises/zipball/8e7d04f1f6450fef59366c399cfad4b9383aa30d",
+ "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d",
"shasum": ""
},
"require": {
- "php": ">=5.5.0"
+ "php": ">=5.5"
},
"require-dev": {
- "phpunit/phpunit": "^4.0"
+ "symfony/phpunit-bridge": "^4.4 || ^5.1"
},
"type": "library",
"extra": {
@@ -122,50 +158,54 @@
"keywords": [
"promise"
],
- "time": "2016-12-20T10:07:11+00:00"
+ "support": {
+ "issues": "https://github.com/guzzle/promises/issues",
+ "source": "https://github.com/guzzle/promises/tree/1.4.1"
+ },
+ "time": "2021-03-07T09:25:29+00:00"
},
{
"name": "guzzlehttp/psr7",
- "version": "1.6.1",
+ "version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/guzzle/psr7.git",
- "reference": "239400de7a173fe9901b9ac7c06497751f00727a"
+ "reference": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/guzzle/psr7/zipball/239400de7a173fe9901b9ac7c06497751f00727a",
- "reference": "239400de7a173fe9901b9ac7c06497751f00727a",
+ "url": "https://api.github.com/repos/guzzle/psr7/zipball/1dc8d9cba3897165e16d12bb13d813afb1eb3fe7",
+ "reference": "1dc8d9cba3897165e16d12bb13d813afb1eb3fe7",
"shasum": ""
},
"require": {
- "php": ">=5.4.0",
- "psr/http-message": "~1.0",
- "ralouphie/getallheaders": "^2.0.5 || ^3.0.0"
+ "php": "^7.2.5 || ^8.0",
+ "psr/http-factory": "^1.0",
+ "psr/http-message": "^1.0",
+ "ralouphie/getallheaders": "^3.0"
},
"provide": {
+ "psr/http-factory-implementation": "1.0",
"psr/http-message-implementation": "1.0"
},
"require-dev": {
- "ext-zlib": "*",
- "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8"
+ "bamarni/composer-bin-plugin": "^1.4.1",
+ "http-interop/http-factory-tests": "^0.9",
+ "phpunit/phpunit": "^8.5.8 || ^9.3.10"
},
"suggest": {
- "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses"
+ "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.6-dev"
+ "dev-master": "2.0-dev"
}
},
"autoload": {
"psr-4": {
"GuzzleHttp\\Psr7\\": "src/"
- },
- "files": [
- "src/functions_include.php"
- ]
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -180,6 +220,11 @@
{
"name": "Tobias Schultze",
"homepage": "https://github.com/Tobion"
+ },
+ {
+ "name": "Márk Sági-Kazár",
+ "email": "mark.sagikazar@gmail.com",
+ "homepage": "https://sagikazarmark.hu"
}
],
"description": "PSR-7 message implementation that also provides common utility methods",
@@ -193,24 +238,29 @@
"uri",
"url"
],
- "time": "2019-07-01T23:21:34+00:00"
+ "support": {
+ "issues": "https://github.com/guzzle/psr7/issues",
+ "source": "https://github.com/guzzle/psr7/tree/2.0.0"
+ },
+ "time": "2021-06-30T20:03:07+00:00"
},
{
- "name": "psr/http-message",
+ "name": "psr/http-client",
"version": "1.0.1",
"source": {
"type": "git",
- "url": "https://github.com/php-fig/http-message.git",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
+ "url": "https://github.com/php-fig/http-client.git",
+ "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
- "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
+ "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
+ "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
"shasum": ""
},
"require": {
- "php": ">=5.3.0"
+ "php": "^7.0 || ^8.0",
+ "psr/http-message": "^1.0"
},
"type": "library",
"extra": {
@@ -220,7 +270,7 @@
},
"autoload": {
"psr-4": {
- "Psr\\Http\\Message\\": "src/"
+ "Psr\\Http\\Client\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -233,93 +283,47 @@
"homepage": "http://www.php-fig.org/"
}
],
- "description": "Common interface for HTTP messages",
- "homepage": "https://github.com/php-fig/http-message",
+ "description": "Common interface for HTTP clients",
+ "homepage": "https://github.com/php-fig/http-client",
"keywords": [
"http",
- "http-message",
+ "http-client",
"psr",
- "psr-7",
- "request",
- "response"
+ "psr-18"
],
- "time": "2016-08-06T14:39:51+00:00"
- },
- {
- "name": "ralouphie/getallheaders",
- "version": "3.0.3",
- "source": {
- "type": "git",
- "url": "https://github.com/ralouphie/getallheaders.git",
- "reference": "120b605dfeb996808c31b6477290a714d356e822"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822",
- "reference": "120b605dfeb996808c31b6477290a714d356e822",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "require-dev": {
- "php-coveralls/php-coveralls": "^2.1",
- "phpunit/phpunit": "^5 || ^6.5"
+ "support": {
+ "source": "https://github.com/php-fig/http-client/tree/master"
},
- "type": "library",
- "autoload": {
- "files": [
- "src/getallheaders.php"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Ralph Khattar",
- "email": "ralph.khattar@gmail.com"
- }
- ],
- "description": "A polyfill for getallheaders.",
- "time": "2019-03-08T08:55:37+00:00"
+ "time": "2020-06-29T06:28:15+00:00"
},
{
- "name": "symfony/polyfill-intl-idn",
- "version": "v1.15.0",
+ "name": "psr/http-factory",
+ "version": "1.0.1",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-intl-idn.git",
- "reference": "47bd6aa45beb1cd7c6a16b7d1810133b728bdfcf"
+ "url": "https://github.com/php-fig/http-factory.git",
+ "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/47bd6aa45beb1cd7c6a16b7d1810133b728bdfcf",
- "reference": "47bd6aa45beb1cd7c6a16b7d1810133b728bdfcf",
+ "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
+ "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
"shasum": ""
},
"require": {
- "php": ">=5.3.3",
- "symfony/polyfill-mbstring": "^1.3",
- "symfony/polyfill-php72": "^1.10"
- },
- "suggest": {
- "ext-intl": "For best performance"
+ "php": ">=7.0.0",
+ "psr/http-message": "^1.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.15-dev"
+ "dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
- "Symfony\\Polyfill\\Intl\\Idn\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
+ "Psr\\Http\\Message\\": "src/"
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -327,73 +331,53 @@
],
"authors": [
{
- "name": "Laurent Bassin",
- "email": "laurent@bassin.info"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
}
],
- "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions",
- "homepage": "https://symfony.com",
+ "description": "Common interfaces for PSR-7 HTTP message factories",
"keywords": [
- "compatibility",
- "idn",
- "intl",
- "polyfill",
- "portable",
- "shim"
- ],
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
- }
+ "factory",
+ "http",
+ "message",
+ "psr",
+ "psr-17",
+ "psr-7",
+ "request",
+ "response"
],
- "time": "2020-03-09T19:04:49+00:00"
+ "support": {
+ "source": "https://github.com/php-fig/http-factory/tree/master"
+ },
+ "time": "2019-04-30T12:38:16+00:00"
},
{
- "name": "symfony/polyfill-mbstring",
- "version": "v1.15.0",
+ "name": "psr/http-message",
+ "version": "1.0.1",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "81ffd3a9c6d707be22e3012b827de1c9775fc5ac"
+ "url": "https://github.com/php-fig/http-message.git",
+ "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/81ffd3a9c6d707be22e3012b827de1c9775fc5ac",
- "reference": "81ffd3a9c6d707be22e3012b827de1c9775fc5ac",
+ "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
+ "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
- },
- "suggest": {
- "ext-mbstring": "For best performance"
+ "php": ">=5.3.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.15-dev"
+ "dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
- },
- "files": [
- "bootstrap.php"
- ]
+ "Psr\\Http\\Message\\": "src/"
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -401,68 +385,50 @@
],
"authors": [
{
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
+ "name": "PHP-FIG",
+ "homepage": "http://www.php-fig.org/"
}
],
- "description": "Symfony polyfill for the Mbstring extension",
- "homepage": "https://symfony.com",
+ "description": "Common interface for HTTP messages",
+ "homepage": "https://github.com/php-fig/http-message",
"keywords": [
- "compatibility",
- "mbstring",
- "polyfill",
- "portable",
- "shim"
- ],
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
- }
+ "http",
+ "http-message",
+ "psr",
+ "psr-7",
+ "request",
+ "response"
],
- "time": "2020-03-09T19:04:49+00:00"
+ "support": {
+ "source": "https://github.com/php-fig/http-message/tree/master"
+ },
+ "time": "2016-08-06T14:39:51+00:00"
},
{
- "name": "symfony/polyfill-php72",
- "version": "v1.15.0",
+ "name": "ralouphie/getallheaders",
+ "version": "3.0.3",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-php72.git",
- "reference": "37b0976c78b94856543260ce09b460a7bc852747"
+ "url": "https://github.com/ralouphie/getallheaders.git",
+ "reference": "120b605dfeb996808c31b6477290a714d356e822"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/37b0976c78b94856543260ce09b460a7bc852747",
- "reference": "37b0976c78b94856543260ce09b460a7bc852747",
+ "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822",
+ "reference": "120b605dfeb996808c31b6477290a714d356e822",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=5.6"
},
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.15-dev"
- }
+ "require-dev": {
+ "php-coveralls/php-coveralls": "^2.1",
+ "phpunit/phpunit": "^5 || ^6.5"
},
+ "type": "library",
"autoload": {
- "psr-4": {
- "Symfony\\Polyfill\\Php72\\": ""
- },
"files": [
- "bootstrap.php"
+ "src/getallheaders.php"
]
},
"notification-url": "https://packagist.org/downloads/",
@@ -471,72 +437,46 @@
],
"authors": [
{
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions",
- "homepage": "https://symfony.com",
- "keywords": [
- "compatibility",
- "polyfill",
- "portable",
- "shim"
- ],
- "funding": [
- {
- "url": "https://symfony.com/sponsor",
- "type": "custom"
- },
- {
- "url": "https://github.com/fabpot",
- "type": "github"
- },
- {
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
- "type": "tidelift"
+ "name": "Ralph Khattar",
+ "email": "ralph.khattar@gmail.com"
}
],
- "time": "2020-02-27T09:26:54+00:00"
+ "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"
}
],
"packages-dev": [
{
"name": "doctrine/instantiator",
- "version": "1.3.0",
+ "version": "1.4.0",
"source": {
"type": "git",
"url": "https://github.com/doctrine/instantiator.git",
- "reference": "ae466f726242e637cebdd526a7d991b9433bacf1"
+ "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/doctrine/instantiator/zipball/ae466f726242e637cebdd526a7d991b9433bacf1",
- "reference": "ae466f726242e637cebdd526a7d991b9433bacf1",
+ "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b",
+ "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "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/"
@@ -550,7 +490,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",
@@ -559,24 +499,42 @@
"constructor",
"instantiate"
],
- "time": "2019-10-21T16:45:58+00:00"
+ "support": {
+ "issues": "https://github.com/doctrine/instantiator/issues",
+ "source": "https://github.com/doctrine/instantiator/tree/1.4.0"
+ },
+ "funding": [
+ {
+ "url": "https://www.doctrine-project.org/sponsorship.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://www.patreon.com/phpdoctrine",
+ "type": "patreon"
+ },
+ {
+ "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-11-10T18:47:58+00:00"
},
{
"name": "hamcrest/hamcrest-php",
- "version": "v1.2.2",
+ "version": "v2.0.1",
"source": {
"type": "git",
"url": "https://github.com/hamcrest/hamcrest-php.git",
- "reference": "b37020aa976fa52d3de9aa904aa2522dc518f79c"
+ "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/b37020aa976fa52d3de9aa904aa2522dc518f79c",
- "reference": "b37020aa976fa52d3de9aa904aa2522dc518f79c",
+ "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3",
+ "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3",
"shasum": ""
},
"require": {
- "php": ">=5.3.2"
+ "php": "^5.3|^7.0|^8.0"
},
"replace": {
"cordoval/hamcrest-php": "*",
@@ -584,54 +542,63 @@
"kodova/hamcrest-php": "*"
},
"require-dev": {
- "phpunit/php-file-iterator": "1.3.3",
- "satooshi/php-coveralls": "dev-master"
+ "phpunit/php-file-iterator": "^1.4 || ^2.0",
+ "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.1-dev"
+ }
+ },
"autoload": {
"classmap": [
"hamcrest"
- ],
- "files": [
- "hamcrest/Hamcrest.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
- "BSD"
+ "BSD-3-Clause"
],
"description": "This is the PHP port of Hamcrest Matchers",
"keywords": [
"test"
],
- "time": "2015-05-11T14:41:42+00:00"
+ "support": {
+ "issues": "https://github.com/hamcrest/hamcrest-php/issues",
+ "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1"
+ },
+ "time": "2020-07-09T08:09:16+00:00"
},
{
"name": "mockery/mockery",
- "version": "0.9.11",
+ "version": "1.4.3",
"source": {
"type": "git",
"url": "https://github.com/mockery/mockery.git",
- "reference": "be9bf28d8e57d67883cba9fcadfcff8caab667f8"
+ "reference": "d1339f64479af1bee0e82a0413813fe5345a54ea"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/mockery/mockery/zipball/be9bf28d8e57d67883cba9fcadfcff8caab667f8",
- "reference": "be9bf28d8e57d67883cba9fcadfcff8caab667f8",
+ "url": "https://api.github.com/repos/mockery/mockery/zipball/d1339f64479af1bee0e82a0413813fe5345a54ea",
+ "reference": "d1339f64479af1bee0e82a0413813fe5345a54ea",
"shasum": ""
},
"require": {
- "hamcrest/hamcrest-php": "~1.1",
+ "hamcrest/hamcrest-php": "^2.0.1",
"lib-pcre": ">=7.0",
- "php": ">=5.3.2"
+ "php": "^7.3 || ^8.0"
+ },
+ "conflict": {
+ "phpunit/phpunit": "<8.0"
},
"require-dev": {
- "phpunit/phpunit": "~4.0"
+ "phpunit/phpunit": "^8.5 || ^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "0.9.x-dev"
+ "dev-master": "1.4.x-dev"
}
},
"autoload": {
@@ -655,8 +622,8 @@
"homepage": "http://davedevelopment.co.uk"
}
],
- "description": "Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending.",
- "homepage": "http://github.com/padraic/mockery",
+ "description": "Mockery is a simple yet flexible PHP mock object framework",
+ "homepage": "https://github.com/mockery/mockery",
"keywords": [
"BDD",
"TDD",
@@ -669,24 +636,28 @@
"test double",
"testing"
],
- "time": "2019-02-12T16:07:13+00:00"
+ "support": {
+ "issues": "https://github.com/mockery/mockery/issues",
+ "source": "https://github.com/mockery/mockery/tree/1.4.3"
+ },
+ "time": "2021-02-24T09:51:49+00:00"
},
{
"name": "myclabs/deep-copy",
- "version": "1.9.5",
+ "version": "1.10.2",
"source": {
"type": "git",
"url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "b2c28789e80a97badd14145fda39b545d83ca3ef"
+ "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/b2c28789e80a97badd14145fda39b545d83ca3ef",
- "reference": "b2c28789e80a97badd14145fda39b545d83ca3ef",
+ "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220",
+ "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": "^7.1 || ^8.0"
},
"replace": {
"myclabs/deep-copy": "self.version"
@@ -717,32 +688,99 @@
"object",
"object graph"
],
- "time": "2020-01-17T21:11:47+00:00"
+ "support": {
+ "issues": "https://github.com/myclabs/DeepCopy/issues",
+ "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2"
+ },
+ "funding": [
+ {
+ "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy",
+ "type": "tidelift"
+ }
+ ],
+ "time": "2020-11-13T09:40:50+00:00"
+ },
+ {
+ "name": "nikic/php-parser",
+ "version": "v4.12.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/nikic/PHP-Parser.git",
+ "reference": "6608f01670c3cc5079e18c1dab1104e002579143"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6608f01670c3cc5079e18c1dab1104e002579143",
+ "reference": "6608f01670c3cc5079e18c1dab1104e002579143",
+ "shasum": ""
+ },
+ "require": {
+ "ext-tokenizer": "*",
+ "php": ">=7.0"
+ },
+ "require-dev": {
+ "ircmaxell/php-yacc": "^0.0.7",
+ "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0"
+ },
+ "bin": [
+ "bin/php-parse"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.9-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "PhpParser\\": "lib/PhpParser"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Nikita Popov"
+ }
+ ],
+ "description": "A PHP parser written in PHP",
+ "keywords": [
+ "parser",
+ "php"
+ ],
+ "support": {
+ "issues": "https://github.com/nikic/PHP-Parser/issues",
+ "source": "https://github.com/nikic/PHP-Parser/tree/v4.12.0"
+ },
+ "time": "2021-07-21T10:44:31+00:00"
},
{
"name": "phar-io/manifest",
- "version": "1.0.3",
+ "version": "2.0.3",
"source": {
"type": "git",
"url": "https://github.com/phar-io/manifest.git",
- "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4"
+ "reference": "97803eca37d319dfa7826cc2437fc020857acb53"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phar-io/manifest/zipball/7761fcacf03b4d4f16e7ccb606d4879ca431fcf4",
- "reference": "7761fcacf03b4d4f16e7ccb606d4879ca431fcf4",
+ "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53",
+ "reference": "97803eca37d319dfa7826cc2437fc020857acb53",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-phar": "*",
- "phar-io/version": "^2.0",
- "php": "^5.6 || ^7.0"
+ "ext-xmlwriter": "*",
+ "phar-io/version": "^3.0.1",
+ "php": "^7.2 || ^8.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.0.x-dev"
+ "dev-master": "2.0.x-dev"
}
},
"autoload": {
@@ -772,24 +810,28 @@
}
],
"description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
- "time": "2018-07-08T19:23:20+00:00"
+ "support": {
+ "issues": "https://github.com/phar-io/manifest/issues",
+ "source": "https://github.com/phar-io/manifest/tree/2.0.3"
+ },
+ "time": "2021-07-20T11:28:43+00:00"
},
{
"name": "phar-io/version",
- "version": "2.0.1",
+ "version": "3.1.0",
"source": {
"type": "git",
"url": "https://github.com/phar-io/version.git",
- "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6"
+ "reference": "bae7c545bef187884426f042434e561ab1ddb182"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phar-io/version/zipball/45a2ec53a73c70ce41d55cedef9063630abaf1b6",
- "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6",
+ "url": "https://api.github.com/repos/phar-io/version/zipball/bae7c545bef187884426f042434e561ab1ddb182",
+ "reference": "bae7c545bef187884426f042434e561ab1ddb182",
"shasum": ""
},
"require": {
- "php": "^5.6 || ^7.0"
+ "php": "^7.2 || ^8.0"
},
"type": "library",
"autoload": {
@@ -819,32 +861,33 @@
}
],
"description": "Library for handling version information and constraints",
- "time": "2018-07-08T19:19:57+00:00"
+ "support": {
+ "issues": "https://github.com/phar-io/version/issues",
+ "source": "https://github.com/phar-io/version/tree/3.1.0"
+ },
+ "time": "2021-02-23T14:00:09+00:00"
},
{
"name": "phpdocumentor/reflection-common",
- "version": "2.0.0",
+ "version": "2.2.0",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/ReflectionCommon.git",
- "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a"
+ "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/63a995caa1ca9e5590304cd845c15ad6d482a62a",
- "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b",
+ "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b",
"shasum": ""
},
"require": {
- "php": ">=7.1"
- },
- "require-dev": {
- "phpunit/phpunit": "~6"
+ "php": "^7.2 || ^8.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.x-dev"
+ "dev-2.x": "2.x-dev"
}
},
"autoload": {
@@ -871,45 +914,45 @@
"reflection",
"static analysis"
],
- "time": "2018-08-07T13:53:10+00:00"
+ "support": {
+ "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues",
+ "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x"
+ },
+ "time": "2020-06-27T09:03:43+00:00"
},
{
"name": "phpdocumentor/reflection-docblock",
- "version": "4.3.4",
+ "version": "5.2.2",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "da3fd972d6bafd628114f7e7e036f45944b62e9c"
+ "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/da3fd972d6bafd628114f7e7e036f45944b62e9c",
- "reference": "da3fd972d6bafd628114f7e7e036f45944b62e9c",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556",
+ "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556",
"shasum": ""
},
"require": {
- "php": "^7.0",
- "phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0",
- "phpdocumentor/type-resolver": "~0.4 || ^1.0.0",
- "webmozart/assert": "^1.0"
+ "ext-filter": "*",
+ "php": "^7.2 || ^8.0",
+ "phpdocumentor/reflection-common": "^2.2",
+ "phpdocumentor/type-resolver": "^1.3",
+ "webmozart/assert": "^1.9.1"
},
"require-dev": {
- "doctrine/instantiator": "^1.0.5",
- "mockery/mockery": "^1.0",
- "phpdocumentor/type-resolver": "0.4.*",
- "phpunit/phpunit": "^6.4"
+ "mockery/mockery": "~1.3.2"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.x-dev"
+ "dev-master": "5.x-dev"
}
},
"autoload": {
"psr-4": {
- "phpDocumentor\\Reflection\\": [
- "src/"
- ]
+ "phpDocumentor\\Reflection\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -920,38 +963,44 @@
{
"name": "Mike van Riel",
"email": "me@mikevanriel.com"
+ },
+ {
+ "name": "Jaap van Otterdijk",
+ "email": "account@ijaap.nl"
}
],
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2019-12-28T18:55:12+00:00"
+ "support": {
+ "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues",
+ "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master"
+ },
+ "time": "2020-09-03T19:13:55+00:00"
},
{
"name": "phpdocumentor/type-resolver",
- "version": "1.0.1",
+ "version": "1.4.0",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9"
+ "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/2e32a6d48972b2c1976ed5d8967145b6cec4a4a9",
- "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9",
+ "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0",
+ "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0",
"shasum": ""
},
"require": {
- "php": "^7.1",
+ "php": "^7.2 || ^8.0",
"phpdocumentor/reflection-common": "^2.0"
},
"require-dev": {
- "ext-tokenizer": "^7.1",
- "mockery/mockery": "~1",
- "phpunit/phpunit": "^7.0"
+ "ext-tokenizer": "*"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.x-dev"
+ "dev-1.x": "1.x-dev"
}
},
"autoload": {
@@ -970,37 +1019,41 @@
}
],
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
- "time": "2019-08-22T18:11:29+00:00"
+ "support": {
+ "issues": "https://github.com/phpDocumentor/TypeResolver/issues",
+ "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.4.0"
+ },
+ "time": "2020-09-17T18:55:26+00:00"
},
{
"name": "phpspec/prophecy",
- "version": "v1.10.3",
+ "version": "1.13.0",
"source": {
"type": "git",
"url": "https://github.com/phpspec/prophecy.git",
- "reference": "451c3cd1418cf640de218914901e51b064abb093"
+ "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093",
- "reference": "451c3cd1418cf640de218914901e51b064abb093",
+ "url": "https://api.github.com/repos/phpspec/prophecy/zipball/be1996ed8adc35c3fd795488a653f4b518be70ea",
+ "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea",
"shasum": ""
},
"require": {
- "doctrine/instantiator": "^1.0.2",
- "php": "^5.3|^7.0",
- "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0",
- "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0",
- "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0"
+ "doctrine/instantiator": "^1.2",
+ "php": "^7.2 || ~8.0, <8.1",
+ "phpdocumentor/reflection-docblock": "^5.2",
+ "sebastian/comparator": "^3.0 || ^4.0",
+ "sebastian/recursion-context": "^3.0 || ^4.0"
},
"require-dev": {
- "phpspec/phpspec": "^2.5 || ^3.2",
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
+ "phpspec/phpspec": "^6.0",
+ "phpunit/phpunit": "^8.0 || ^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.10.x-dev"
+ "dev-master": "1.11.x-dev"
}
},
"autoload": {
@@ -1033,44 +1086,52 @@
"spy",
"stub"
],
- "time": "2020-03-05T15:02:03+00:00"
+ "support": {
+ "issues": "https://github.com/phpspec/prophecy/issues",
+ "source": "https://github.com/phpspec/prophecy/tree/1.13.0"
+ },
+ "time": "2021-03-17T13:42:18+00:00"
},
{
"name": "phpunit/php-code-coverage",
- "version": "6.1.4",
+ "version": "9.2.6",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "807e6013b00af69b6c5d9ceb4282d0393dbb9d8d"
+ "reference": "f6293e1b30a2354e8428e004689671b83871edde"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/807e6013b00af69b6c5d9ceb4282d0393dbb9d8d",
- "reference": "807e6013b00af69b6c5d9ceb4282d0393dbb9d8d",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f6293e1b30a2354e8428e004689671b83871edde",
+ "reference": "f6293e1b30a2354e8428e004689671b83871edde",
"shasum": ""
},
"require": {
"ext-dom": "*",
+ "ext-libxml": "*",
"ext-xmlwriter": "*",
- "php": "^7.1",
- "phpunit/php-file-iterator": "^2.0",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-token-stream": "^3.0",
- "sebastian/code-unit-reverse-lookup": "^1.0.1",
- "sebastian/environment": "^3.1 || ^4.0",
- "sebastian/version": "^2.0.1",
- "theseer/tokenizer": "^1.1"
+ "nikic/php-parser": "^4.10.2",
+ "php": ">=7.3",
+ "phpunit/php-file-iterator": "^3.0.3",
+ "phpunit/php-text-template": "^2.0.2",
+ "sebastian/code-unit-reverse-lookup": "^2.0.2",
+ "sebastian/complexity": "^2.0",
+ "sebastian/environment": "^5.1.2",
+ "sebastian/lines-of-code": "^1.0.3",
+ "sebastian/version": "^3.0.1",
+ "theseer/tokenizer": "^1.2.0"
},
"require-dev": {
- "phpunit/phpunit": "^7.0"
+ "phpunit/phpunit": "^9.3"
},
"suggest": {
- "ext-xdebug": "^2.6.0"
+ "ext-pcov": "*",
+ "ext-xdebug": "*"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "6.1-dev"
+ "dev-master": "9.2-dev"
}
},
"autoload": {
@@ -1096,32 +1157,42 @@
"testing",
"xunit"
],
- "time": "2018-10-31T16:06:48+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues",
+ "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.6"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2021-03-28T07:26:59+00:00"
},
{
"name": "phpunit/php-file-iterator",
- "version": "2.0.2",
+ "version": "3.0.5",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "050bedf145a257b1ff02746c31894800e5122946"
+ "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/050bedf145a257b1ff02746c31894800e5122946",
- "reference": "050bedf145a257b1ff02746c31894800e5122946",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/aa4be8575f26070b100fccb67faabb28f21f66f8",
+ "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": ">=7.3"
},
"require-dev": {
- "phpunit/phpunit": "^7.1"
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0.x-dev"
+ "dev-master": "3.0-dev"
}
},
"autoload": {
@@ -1146,26 +1217,48 @@
"filesystem",
"iterator"
],
- "time": "2018-09-13T20:33:42+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues",
+ "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.5"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T05:57:25+00:00"
},
{
- "name": "phpunit/php-text-template",
- "version": "1.2.1",
+ "name": "phpunit/php-invoker",
+ "version": "3.1.1",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/php-text-template.git",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
+ "url": "https://github.com/sebastianbergmann/php-invoker.git",
+ "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
- "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
+ "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "ext-pcntl": "*",
+ "phpunit/phpunit": "^9.3"
+ },
+ "suggest": {
+ "ext-pcntl": "*"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.1-dev"
+ }
+ },
"autoload": {
"classmap": [
"src/"
@@ -1182,37 +1275,47 @@
"role": "lead"
}
],
- "description": "Simple template engine.",
- "homepage": "https://github.com/sebastianbergmann/php-text-template/",
+ "description": "Invoke callables with a timeout",
+ "homepage": "https://github.com/sebastianbergmann/php-invoker/",
"keywords": [
- "template"
+ "process"
],
- "time": "2015-06-21T13:50:34+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-invoker/issues",
+ "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T05:58:55+00:00"
},
{
- "name": "phpunit/php-timer",
- "version": "2.1.2",
+ "name": "phpunit/php-text-template",
+ "version": "2.0.4",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/php-timer.git",
- "reference": "1038454804406b0b5f5f520358e78c1c2f71501e"
+ "url": "https://github.com/sebastianbergmann/php-text-template.git",
+ "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/1038454804406b0b5f5f520358e78c1c2f71501e",
- "reference": "1038454804406b0b5f5f520358e78c1c2f71501e",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
+ "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": ">=7.3"
},
"require-dev": {
- "phpunit/phpunit": "^7.0"
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.1-dev"
+ "dev-master": "2.0-dev"
}
},
"autoload": {
@@ -1231,38 +1334,47 @@
"role": "lead"
}
],
- "description": "Utility class for timing",
- "homepage": "https://github.com/sebastianbergmann/php-timer/",
+ "description": "Simple template engine.",
+ "homepage": "https://github.com/sebastianbergmann/php-text-template/",
"keywords": [
- "timer"
+ "template"
+ ],
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-text-template/issues",
+ "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
],
- "time": "2019-06-07T04:22:29+00:00"
+ "time": "2020-10-26T05:33:50+00:00"
},
{
- "name": "phpunit/php-token-stream",
- "version": "3.1.1",
+ "name": "phpunit/php-timer",
+ "version": "5.0.3",
"source": {
"type": "git",
- "url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "995192df77f63a59e47f025390d2d1fdf8f425ff"
+ "url": "https://github.com/sebastianbergmann/php-timer.git",
+ "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/995192df77f63a59e47f025390d2d1fdf8f425ff",
- "reference": "995192df77f63a59e47f025390d2d1fdf8f425ff",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
+ "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2",
"shasum": ""
},
"require": {
- "ext-tokenizer": "*",
- "php": "^7.1"
+ "php": ">=7.3"
},
"require-dev": {
- "phpunit/phpunit": "^7.0"
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.1-dev"
+ "dev-master": "5.0-dev"
}
},
"autoload": {
@@ -1277,65 +1389,78 @@
"authors": [
{
"name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
}
],
- "description": "Wrapper around PHP's tokenizer extension.",
- "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
+ "description": "Utility class for timing",
+ "homepage": "https://github.com/sebastianbergmann/php-timer/",
"keywords": [
- "tokenizer"
+ "timer"
],
- "time": "2019-09-17T06:23:10+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/php-timer/issues",
+ "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T13:16:10+00:00"
},
{
"name": "phpunit/phpunit",
- "version": "7.5.20",
+ "version": "9.5.8",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "9467db479d1b0487c99733bb1e7944d32deded2c"
+ "reference": "191768ccd5c85513b4068bdbe99bb6390c7d54fb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9467db479d1b0487c99733bb1e7944d32deded2c",
- "reference": "9467db479d1b0487c99733bb1e7944d32deded2c",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/191768ccd5c85513b4068bdbe99bb6390c7d54fb",
+ "reference": "191768ccd5c85513b4068bdbe99bb6390c7d54fb",
"shasum": ""
},
"require": {
- "doctrine/instantiator": "^1.1",
+ "doctrine/instantiator": "^1.3.1",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ext-xml": "*",
- "myclabs/deep-copy": "^1.7",
- "phar-io/manifest": "^1.0.2",
- "phar-io/version": "^2.0",
- "php": "^7.1",
- "phpspec/prophecy": "^1.7",
- "phpunit/php-code-coverage": "^6.0.7",
- "phpunit/php-file-iterator": "^2.0.1",
- "phpunit/php-text-template": "^1.2.1",
- "phpunit/php-timer": "^2.1",
- "sebastian/comparator": "^3.0",
- "sebastian/diff": "^3.0",
- "sebastian/environment": "^4.0",
- "sebastian/exporter": "^3.1",
- "sebastian/global-state": "^2.0",
- "sebastian/object-enumerator": "^3.0.3",
- "sebastian/resource-operations": "^2.0",
- "sebastian/version": "^2.0.1"
- },
- "conflict": {
- "phpunit/phpunit-mock-objects": "*"
+ "ext-xmlwriter": "*",
+ "myclabs/deep-copy": "^1.10.1",
+ "phar-io/manifest": "^2.0.3",
+ "phar-io/version": "^3.0.2",
+ "php": ">=7.3",
+ "phpspec/prophecy": "^1.12.1",
+ "phpunit/php-code-coverage": "^9.2.3",
+ "phpunit/php-file-iterator": "^3.0.5",
+ "phpunit/php-invoker": "^3.1.1",
+ "phpunit/php-text-template": "^2.0.3",
+ "phpunit/php-timer": "^5.0.2",
+ "sebastian/cli-parser": "^1.0.1",
+ "sebastian/code-unit": "^1.0.6",
+ "sebastian/comparator": "^4.0.5",
+ "sebastian/diff": "^4.0.3",
+ "sebastian/environment": "^5.1.3",
+ "sebastian/exporter": "^4.0.3",
+ "sebastian/global-state": "^5.0.1",
+ "sebastian/object-enumerator": "^4.0.3",
+ "sebastian/resource-operations": "^3.0.3",
+ "sebastian/type": "^2.3.4",
+ "sebastian/version": "^3.0.2"
},
"require-dev": {
- "ext-pdo": "*"
+ "ext-pdo": "*",
+ "phpspec/prophecy-phpunit": "^2.0.1"
},
"suggest": {
"ext-soap": "*",
- "ext-xdebug": "*",
- "phpunit/php-invoker": "^2.0"
+ "ext-xdebug": "*"
},
"bin": [
"phpunit"
@@ -1343,12 +1468,15 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "7.5-dev"
+ "dev-master": "9.5-dev"
}
},
"autoload": {
"classmap": [
"src/"
+ ],
+ "files": [
+ "src/Framework/Assert/Functions.php"
]
},
"notification-url": "https://packagist.org/downloads/",
@@ -1369,32 +1497,158 @@
"testing",
"xunit"
],
- "time": "2020-01-08T08:45:45+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/phpunit/issues",
+ "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.8"
+ },
+ "funding": [
+ {
+ "url": "https://phpunit.de/donate.html",
+ "type": "custom"
+ },
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2021-07-31T15:17:34+00:00"
+ },
+ {
+ "name": "sebastian/cli-parser",
+ "version": "1.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/cli-parser.git",
+ "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2",
+ "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Library for parsing CLI options",
+ "homepage": "https://github.com/sebastianbergmann/cli-parser",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/cli-parser/issues",
+ "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T06:08:49+00:00"
+ },
+ {
+ "name": "sebastian/code-unit",
+ "version": "1.0.8",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/code-unit.git",
+ "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120",
+ "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Collection of value objects that represent the PHP code units",
+ "homepage": "https://github.com/sebastianbergmann/code-unit",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/code-unit/issues",
+ "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T13:08:54+00:00"
},
{
"name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.1",
+ "version": "2.0.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18"
+ "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
- "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18",
+ "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
+ "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5",
"shasum": ""
},
"require": {
- "php": "^5.6 || ^7.0"
+ "php": ">=7.3"
},
"require-dev": {
- "phpunit/phpunit": "^5.7 || ^6.0"
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.0.x-dev"
+ "dev-master": "2.0-dev"
}
},
"autoload": {
@@ -1414,34 +1668,44 @@
],
"description": "Looks up which function or method a line of code belongs to",
"homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues",
+ "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T05:30:19+00:00"
},
{
"name": "sebastian/comparator",
- "version": "3.0.2",
+ "version": "4.0.6",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da"
+ "reference": "55f4261989e546dc112258c7a75935a81a7ce382"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/5de4fc177adf9bce8df98d8d141a7559d7ccf6da",
- "reference": "5de4fc177adf9bce8df98d8d141a7559d7ccf6da",
+ "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382",
+ "reference": "55f4261989e546dc112258c7a75935a81a7ce382",
"shasum": ""
},
"require": {
- "php": "^7.1",
- "sebastian/diff": "^3.0",
- "sebastian/exporter": "^3.1"
+ "php": ">=7.3",
+ "sebastian/diff": "^4.0",
+ "sebastian/exporter": "^4.0"
},
"require-dev": {
- "phpunit/phpunit": "^7.1"
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.0-dev"
+ "dev-master": "4.0-dev"
}
},
"autoload": {
@@ -1454,6 +1718,10 @@
"BSD-3-Clause"
],
"authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
{
"name": "Jeff Welch",
"email": "whatthejeff@gmail.com"
@@ -1465,10 +1733,6 @@
{
"name": "Bernhard Schussek",
"email": "bschussek@2bepublished.at"
- },
- {
- "name": "Sebastian Bergmann",
- "email": "sebastian@phpunit.de"
}
],
"description": "Provides the functionality to compare PHP values for equality",
@@ -1478,33 +1742,100 @@
"compare",
"equality"
],
- "time": "2018-07-12T15:12:46+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/comparator/issues",
+ "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T15:49:45+00:00"
+ },
+ {
+ "name": "sebastian/complexity",
+ "version": "2.0.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/complexity.git",
+ "reference": "739b35e53379900cc9ac327b2147867b8b6efd88"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88",
+ "reference": "739b35e53379900cc9ac327b2147867b8b6efd88",
+ "shasum": ""
+ },
+ "require": {
+ "nikic/php-parser": "^4.7",
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Library for calculating the complexity of PHP code units",
+ "homepage": "https://github.com/sebastianbergmann/complexity",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/complexity/issues",
+ "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T15:52:27+00:00"
},
{
"name": "sebastian/diff",
- "version": "3.0.2",
+ "version": "4.0.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29"
+ "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/720fcc7e9b5cf384ea68d9d930d480907a0c1a29",
- "reference": "720fcc7e9b5cf384ea68d9d930d480907a0c1a29",
+ "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d",
+ "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": ">=7.3"
},
"require-dev": {
- "phpunit/phpunit": "^7.5 || ^8.0",
- "symfony/process": "^2 || ^3.3 || ^4"
+ "phpunit/phpunit": "^9.3",
+ "symfony/process": "^4.2 || ^5"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.0-dev"
+ "dev-master": "4.0-dev"
}
},
"autoload": {
@@ -1517,13 +1848,13 @@
"BSD-3-Clause"
],
"authors": [
- {
- "name": "Kore Nordmann",
- "email": "mail@kore-nordmann.de"
- },
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Kore Nordmann",
+ "email": "mail@kore-nordmann.de"
}
],
"description": "Diff implementation",
@@ -1534,27 +1865,37 @@
"unidiff",
"unified diff"
],
- "time": "2019-02-04T06:01:07+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/diff/issues",
+ "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T13:10:38+00:00"
},
{
"name": "sebastian/environment",
- "version": "4.2.3",
+ "version": "5.1.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/environment.git",
- "reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368"
+ "reference": "388b6ced16caa751030f6a69e588299fa09200ac"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/464c90d7bdf5ad4e8a6aea15c091fec0603d4368",
- "reference": "464c90d7bdf5ad4e8a6aea15c091fec0603d4368",
+ "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac",
+ "reference": "388b6ced16caa751030f6a69e588299fa09200ac",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": ">=7.3"
},
"require-dev": {
- "phpunit/phpunit": "^7.5"
+ "phpunit/phpunit": "^9.3"
},
"suggest": {
"ext-posix": "*"
@@ -1562,7 +1903,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.2-dev"
+ "dev-master": "5.1-dev"
}
},
"autoload": {
@@ -1587,34 +1928,44 @@
"environment",
"hhvm"
],
- "time": "2019-11-20T08:46:58+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/environment/issues",
+ "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T05:52:38+00:00"
},
{
"name": "sebastian/exporter",
- "version": "3.1.2",
+ "version": "4.0.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/exporter.git",
- "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e"
+ "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/68609e1261d215ea5b21b7987539cbfbe156ec3e",
- "reference": "68609e1261d215ea5b21b7987539cbfbe156ec3e",
+ "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/d89cc98761b8cb5a1a235a6b703ae50d34080e65",
+ "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65",
"shasum": ""
},
"require": {
- "php": "^7.0",
- "sebastian/recursion-context": "^3.0"
+ "php": ">=7.3",
+ "sebastian/recursion-context": "^4.0"
},
"require-dev": {
"ext-mbstring": "*",
- "phpunit/phpunit": "^6.0"
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.1.x-dev"
+ "dev-master": "4.0-dev"
}
},
"autoload": {
@@ -1654,27 +2005,40 @@
"export",
"exporter"
],
- "time": "2019-09-14T09:02:43+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/exporter/issues",
+ "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T05:24:23+00:00"
},
{
"name": "sebastian/global-state",
- "version": "2.0.0",
+ "version": "5.0.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4"
+ "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
- "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4",
+ "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/23bd5951f7ff26f12d4e3242864df3e08dec4e49",
+ "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49",
"shasum": ""
},
"require": {
- "php": "^7.0"
+ "php": ">=7.3",
+ "sebastian/object-reflector": "^2.0",
+ "sebastian/recursion-context": "^4.0"
},
"require-dev": {
- "phpunit/phpunit": "^6.0"
+ "ext-dom": "*",
+ "phpunit/phpunit": "^9.3"
},
"suggest": {
"ext-uopz": "*"
@@ -1682,7 +2046,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0-dev"
+ "dev-master": "5.0-dev"
}
},
"autoload": {
@@ -1705,34 +2069,101 @@
"keywords": [
"global state"
],
- "time": "2017-04-27T15:39:26+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/global-state/issues",
+ "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2021-06-11T13:31:12+00:00"
+ },
+ {
+ "name": "sebastian/lines-of-code",
+ "version": "1.0.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/lines-of-code.git",
+ "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc",
+ "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc",
+ "shasum": ""
+ },
+ "require": {
+ "nikic/php-parser": "^4.6",
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Library for counting the lines of code in PHP source code",
+ "homepage": "https://github.com/sebastianbergmann/lines-of-code",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/lines-of-code/issues",
+ "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-11-28T06:42:11+00:00"
},
{
"name": "sebastian/object-enumerator",
- "version": "3.0.3",
+ "version": "4.0.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5"
+ "reference": "5c9eeac41b290a3712d88851518825ad78f45c71"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5",
- "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71",
+ "reference": "5c9eeac41b290a3712d88851518825ad78f45c71",
"shasum": ""
},
"require": {
- "php": "^7.0",
- "sebastian/object-reflector": "^1.1.1",
- "sebastian/recursion-context": "^3.0"
+ "php": ">=7.3",
+ "sebastian/object-reflector": "^2.0",
+ "sebastian/recursion-context": "^4.0"
},
"require-dev": {
- "phpunit/phpunit": "^6.0"
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.0.x-dev"
+ "dev-master": "4.0-dev"
}
},
"autoload": {
@@ -1752,32 +2183,42 @@
],
"description": "Traverses array structures and object graphs to enumerate all referenced objects",
"homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-08-03T12:35:26+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/object-enumerator/issues",
+ "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T13:12:34+00:00"
},
{
"name": "sebastian/object-reflector",
- "version": "1.1.1",
+ "version": "2.0.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/object-reflector.git",
- "reference": "773f97c67f28de00d397be301821b06708fca0be"
+ "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be",
- "reference": "773f97c67f28de00d397be301821b06708fca0be",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
+ "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7",
"shasum": ""
},
"require": {
- "php": "^7.0"
+ "php": ">=7.3"
},
"require-dev": {
- "phpunit/phpunit": "^6.0"
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.1-dev"
+ "dev-master": "2.0-dev"
}
},
"autoload": {
@@ -1797,32 +2238,42 @@
],
"description": "Allows reflection of object attributes, including inherited and non-public ones",
"homepage": "https://github.com/sebastianbergmann/object-reflector/",
- "time": "2017-03-29T09:07:27+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/object-reflector/issues",
+ "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T13:14:26+00:00"
},
{
"name": "sebastian/recursion-context",
- "version": "3.0.0",
+ "version": "4.0.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/recursion-context.git",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8"
+ "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
- "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8",
+ "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172",
+ "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172",
"shasum": ""
},
"require": {
- "php": "^7.0"
+ "php": ">=7.3"
},
"require-dev": {
- "phpunit/phpunit": "^6.0"
+ "phpunit/phpunit": "^9.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.0.x-dev"
+ "dev-master": "4.0-dev"
}
},
"autoload": {
@@ -1835,14 +2286,14 @@
"BSD-3-Clause"
],
"authors": [
- {
- "name": "Jeff Welch",
- "email": "whatthejeff@gmail.com"
- },
{
"name": "Sebastian Bergmann",
"email": "sebastian@phpunit.de"
},
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
{
"name": "Adam Harvey",
"email": "aharvey@php.net"
@@ -1850,29 +2301,42 @@
],
"description": "Provides functionality to recursively process PHP variables",
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2017-03-03T06:23:57+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/recursion-context/issues",
+ "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-10-26T13:17:30+00:00"
},
{
"name": "sebastian/resource-operations",
- "version": "2.0.1",
+ "version": "3.0.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/resource-operations.git",
- "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9"
+ "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/4d7a795d35b889bf80a0cc04e08d77cedfa917a9",
- "reference": "4d7a795d35b889bf80a0cc04e08d77cedfa917a9",
+ "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
+ "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8",
"shasum": ""
},
"require": {
- "php": "^7.1"
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0-dev"
+ "dev-master": "3.0-dev"
}
},
"autoload": {
@@ -1892,29 +2356,95 @@
],
"description": "Provides a list of PHP built-in functions that operate on resources",
"homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2018-10-04T04:07:39+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/resource-operations/issues",
+ "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T06:45:17+00:00"
+ },
+ {
+ "name": "sebastian/type",
+ "version": "2.3.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/type.git",
+ "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b8cd8a1c753c90bc1a0f5372170e3e489136f914",
+ "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^9.3"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.3-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Collection of value objects that represent the types of the PHP type system",
+ "homepage": "https://github.com/sebastianbergmann/type",
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/type/issues",
+ "source": "https://github.com/sebastianbergmann/type/tree/2.3.4"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2021-06-15T12:49:02+00:00"
},
{
"name": "sebastian/version",
- "version": "2.0.1",
+ "version": "3.0.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/version.git",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
+ "reference": "c6c1022351a901512170118436c764e473f6de8c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
- "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
+ "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c",
+ "reference": "c6c1022351a901512170118436c764e473f6de8c",
"shasum": ""
},
"require": {
- "php": ">=5.6"
+ "php": ">=7.3"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0.x-dev"
+ "dev-master": "3.0-dev"
}
},
"autoload": {
@@ -1935,68 +2465,51 @@
],
"description": "Library that helps with managing the version number of Git-hosted PHP projects",
"homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
+ "support": {
+ "issues": "https://github.com/sebastianbergmann/version/issues",
+ "source": "https://github.com/sebastianbergmann/version/tree/3.0.2"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/sebastianbergmann",
+ "type": "github"
+ }
+ ],
+ "time": "2020-09-28T06:39:44+00:00"
},
{
"name": "squizlabs/php_codesniffer",
- "version": "2.9.2",
+ "version": "3.6.0",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745"
+ "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745",
- "reference": "2acf168de78487db620ab4bc524135a13cfe6745",
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ffced0d2c8fa8e6cdc4d695a743271fab6c38625",
+ "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625",
"shasum": ""
},
"require": {
"ext-simplexml": "*",
"ext-tokenizer": "*",
"ext-xmlwriter": "*",
- "php": ">=5.1.2"
+ "php": ">=5.4.0"
},
"require-dev": {
- "phpunit/phpunit": "~4.0"
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"bin": [
- "scripts/phpcs",
- "scripts/phpcbf"
+ "bin/phpcs",
+ "bin/phpcbf"
],
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.x-dev"
+ "dev-master": "3.x-dev"
}
},
- "autoload": {
- "classmap": [
- "CodeSniffer.php",
- "CodeSniffer/CLI.php",
- "CodeSniffer/Exception.php",
- "CodeSniffer/File.php",
- "CodeSniffer/Fixer.php",
- "CodeSniffer/Report.php",
- "CodeSniffer/Reporting.php",
- "CodeSniffer/Sniff.php",
- "CodeSniffer/Tokens.php",
- "CodeSniffer/Reports/",
- "CodeSniffer/Tokenizers/",
- "CodeSniffer/DocGenerators/",
- "CodeSniffer/Standards/AbstractPatternSniff.php",
- "CodeSniffer/Standards/AbstractScopeSniff.php",
- "CodeSniffer/Standards/AbstractVariableSniff.php",
- "CodeSniffer/Standards/IncorrectPatternException.php",
- "CodeSniffer/Standards/Generic/Sniffs/",
- "CodeSniffer/Standards/MySource/Sniffs/",
- "CodeSniffer/Standards/PEAR/Sniffs/",
- "CodeSniffer/Standards/PSR1/Sniffs/",
- "CodeSniffer/Standards/PSR2/Sniffs/",
- "CodeSniffer/Standards/Squiz/Sniffs/",
- "CodeSniffer/Standards/Zend/Sniffs/"
- ]
- },
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
@@ -2008,29 +2521,34 @@
}
],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "http://www.squizlabs.com/php-codesniffer",
+ "homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
"keywords": [
"phpcs",
"standards"
],
- "time": "2018-11-07T22:31:41+00:00"
+ "support": {
+ "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
+ "source": "https://github.com/squizlabs/PHP_CodeSniffer",
+ "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
+ },
+ "time": "2021-04-09T00:54:41+00:00"
},
{
"name": "symfony/polyfill-ctype",
- "version": "v1.15.0",
+ "version": "v1.23.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "4719fa9c18b0464d399f1a63bf624b42b6fa8d14"
+ "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/4719fa9c18b0464d399f1a63bf624b42b6fa8d14",
- "reference": "4719fa9c18b0464d399f1a63bf624b42b6fa8d14",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce",
+ "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce",
"shasum": ""
},
"require": {
- "php": ">=5.3.3"
+ "php": ">=7.1"
},
"suggest": {
"ext-ctype": "For best performance"
@@ -2038,7 +2556,11 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.15-dev"
+ "dev-main": "1.23-dev"
+ },
+ "thanks": {
+ "name": "symfony/polyfill",
+ "url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
@@ -2071,6 +2593,9 @@
"polyfill",
"portable"
],
+ "support": {
+ "source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0"
+ },
"funding": [
{
"url": "https://symfony.com/sponsor",
@@ -2085,27 +2610,27 @@
"type": "tidelift"
}
],
- "time": "2020-02-27T09:26:54+00:00"
+ "time": "2021-02-19T12:13:01+00:00"
},
{
"name": "theseer/tokenizer",
- "version": "1.1.3",
+ "version": "1.2.1",
"source": {
"type": "git",
"url": "https://github.com/theseer/tokenizer.git",
- "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9"
+ "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/theseer/tokenizer/zipball/11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
- "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
+ "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e",
+ "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-tokenizer": "*",
"ext-xmlwriter": "*",
- "php": "^7.0"
+ "php": "^7.2 || ^8.0"
},
"type": "library",
"autoload": {
@@ -2125,33 +2650,49 @@
}
],
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
- "time": "2019-06-13T22:48:21+00:00"
+ "support": {
+ "issues": "https://github.com/theseer/tokenizer/issues",
+ "source": "https://github.com/theseer/tokenizer/tree/1.2.1"
+ },
+ "funding": [
+ {
+ "url": "https://github.com/theseer",
+ "type": "github"
+ }
+ ],
+ "time": "2021-07-28T10:34:58+00:00"
},
{
"name": "webmozart/assert",
- "version": "1.8.0",
+ "version": "1.10.0",
"source": {
"type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "ab2cb0b3b559010b75981b1bdce728da3ee90ad6"
+ "url": "https://github.com/webmozarts/assert.git",
+ "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/ab2cb0b3b559010b75981b1bdce728da3ee90ad6",
- "reference": "ab2cb0b3b559010b75981b1bdce728da3ee90ad6",
+ "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25",
+ "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25",
"shasum": ""
},
"require": {
- "php": "^5.3.3 || ^7.0",
+ "php": "^7.2 || ^8.0",
"symfony/polyfill-ctype": "^1.8"
},
"conflict": {
- "vimeo/psalm": "<3.9.1"
+ "phpstan/phpstan": "<0.12.20",
+ "vimeo/psalm": "<4.6.1 || 4.6.2"
},
"require-dev": {
- "phpunit/phpunit": "^4.8.36 || ^7.5.13"
+ "phpunit/phpunit": "^8.5.13"
},
"type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.10-dev"
+ }
+ },
"autoload": {
"psr-4": {
"Webmozart\\Assert\\": "src/"
@@ -2173,7 +2714,11 @@
"check",
"validate"
],
- "time": "2020-04-18T12:12:48+00:00"
+ "support": {
+ "issues": "https://github.com/webmozarts/assert/issues",
+ "source": "https://github.com/webmozarts/assert/tree/1.10.0"
+ },
+ "time": "2021-03-09T10:59:23+00:00"
}
],
"aliases": [],
@@ -2182,8 +2727,8 @@
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
- "php": "~7.1"
+ "php": ">=7.3"
},
"platform-dev": [],
- "plugin-api-version": "1.1.0"
+ "plugin-api-version": "2.1.0"
}
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 15885ab..d68f6d2 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -7,7 +7,6 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
- mapTestClassNameToCoveredClassName="false"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
@@ -15,7 +14,7 @@
stopOnSkipped="false">
-
+
./test/src/
@@ -23,15 +22,13 @@
-
-
-
+
+
+ ./src
+
+
./vendor
./test
-
-
- ./src
-
-
-
+
+
diff --git a/test/src/Api/Client/FilesFactoryTest.php b/test/src/Api/Client/FilesFactoryTest.php
index 6c8f66f..a93e32d 100644
--- a/test/src/Api/Client/FilesFactoryTest.php
+++ b/test/src/Api/Client/FilesFactoryTest.php
@@ -55,7 +55,7 @@ public function getFilesShouldReturnValidResponse() : void
{
$requestMock = $this->createMock(FilesRequest::class);
$requestMock->method('toArray')->willReturn([]);
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for('{
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor('{
"nb_results":3,
"files":[{"id":281266321},{"id":285285249},{"id":264874647}]
}'));
@@ -66,10 +66,10 @@ public function getFilesShouldReturnValidResponse() : void
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getFilesShouldThrowExceptionWhenAccessTokenIsNullWithIsLicensedColumn() : void
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$requestMock = $this->createMock(FilesRequest::class);
$requestMock->method('getResultColumns')->willReturn(['is_licensed']);
$this->_files_factory->getFiles($requestMock, $this->_mocked_http_client);
diff --git a/test/src/Api/Client/Http/HttpClientTest.php b/test/src/Api/Client/Http/HttpClientTest.php
index caddb86..bd87f70 100644
--- a/test/src/Api/Client/Http/HttpClientTest.php
+++ b/test/src/Api/Client/Http/HttpClientTest.php
@@ -53,10 +53,10 @@ public function executeDoGetSuccessfully()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function executeDoGetWithException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$exception = StockApiException::withMessage('Exception thrown');
$this->_mocked_http_client->method('request')->will($this->throwException($exception));
$this->_client->doGet('some uri', []);
@@ -74,10 +74,10 @@ public function executeDoPostSuccessfully()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function executeDoPostWithException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$exception = StockApiException::withMessage('Exception thrown');
$this->_mocked_http_client->method('request')->will($this->throwException($exception));
$this->_client->doPost('some uri', [], []);
@@ -95,10 +95,10 @@ public function executeDoMultiPartSuccessfully()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function executeDoMultiPartWithException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$exception = StockApiException::withMessage('Exception thrown');
$this->_mocked_http_client->method('request')->will($this->throwException($exception));
$this->_client->doMultiPart('some uri', [], 'test/resources/SmallImage.jpg');
@@ -106,10 +106,10 @@ public function executeDoMultiPartWithException()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function executeDoMultiPartWithExceptionIfFileIsNotReadable()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$exception = StockApiException::withMessage('Exception thrown');
$this->_mocked_http_client->method('request')->will($this->throwException($exception));
$this->_client->doMultiPart('some uri', [], '');
diff --git a/test/src/Api/Client/LicenseFactoryTest.php b/test/src/Api/Client/LicenseFactoryTest.php
index d1bbe2a..46c765f 100644
--- a/test/src/Api/Client/LicenseFactoryTest.php
+++ b/test/src/Api/Client/LicenseFactoryTest.php
@@ -63,7 +63,7 @@ public function getContentInfoShouldReturnValidResponse()
$this->_request = new LicenseRequest();
$this->_request->setContentId(59741022);
$this->_request->setLicenseState('STANDARD');
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for('{
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor('{
"member": {
"stock_id": 1393839
},
@@ -85,20 +85,20 @@ public function getContentInfoShouldReturnValidResponse()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getContentInfoContentIdNullShouldThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request = new LicenseRequest();
$final_response = $this->_license_factory->getContentInfo($this->_request, 'test', $this->_mocked_http_client);
}
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getContentInfoLicenseStateNullShouldThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request = new LicenseRequest();
$this->_request->setContentId(59741022);
$final_response = $this->_license_factory->getContentInfo($this->_request, 'test', $this->_mocked_http_client);
@@ -106,10 +106,10 @@ public function getContentInfoLicenseStateNullShouldThrowException()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getContentInfoAccessTokenEmptyShouldThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request = new LicenseRequest();
$this->_request->setContentId(59741022);
$this->_request->setLicenseState('STANDARD');
@@ -124,7 +124,7 @@ public function getContentLicenseWithGetRequestShouldReturnValidResponse()
$this->_request = new LicenseRequest();
$this->_request->setContentId(59741022);
$this->_request->setLicenseState('STANDARD');
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for('{
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor('{
"member": {
"stock_id": 1393839
},
@@ -160,7 +160,7 @@ public function getContentLicenseWithPostRequestShouldReturnValidResponse()
],
];
$this->_request->setLicenseReference($data);
- $this->_mocked_http_client->method('doPost')->willReturn(Psr7\stream_for('{
+ $this->_mocked_http_client->method('doPost')->willReturn(Psr7\Utils::streamFor('{
"member": {
"stock_id": 1393839
},
@@ -183,20 +183,20 @@ public function getContentLicenseWithPostRequestShouldReturnValidResponse()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getContentLicenseContentIdNullShouldThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request = new LicenseRequest();
$final_response = $this->_license_factory->getContentLicense($this->_request, 'test', $this->_mocked_http_client);
}
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getContentLicenseLicenseStateNullShouldThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request = new LicenseRequest();
$this->_request->setContentId(59741022);
$final_response = $this->_license_factory->getContentLicense($this->_request, 'test', $this->_mocked_http_client);
@@ -204,10 +204,10 @@ public function getContentLicenseLicenseStateNullShouldThrowException()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getContentLicenseAccessTokenEmptyShouldThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request = new LicenseRequest();
$this->_request->setContentId(59741022);
$this->_request->setLicenseState('STANDARD');
@@ -222,7 +222,7 @@ public function getMemberProfileShouldReturnValidResponse()
$this->_request = new LicenseRequest();
$this->_request->setContentId(84071201);
$this->_request->setLicenseState('STANDARD');
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for('{
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor('{
"available_entitlement": {
"quota": 0,
"full_entitlement_quota": []
@@ -244,20 +244,20 @@ public function getMemberProfileShouldReturnValidResponse()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getMemberProfileContentIdNullShouldThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request = new LicenseRequest();
$final_response = $this->_license_factory->getMemberProfile($this->_request, 'test', $this->_mocked_http_client);
}
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getMemberProfileAccessTokenEmptyShouldThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request = new LicenseRequest();
$this->_request->setContentId(59741022);
$this->_request->setLicenseState('STANDARD');
@@ -271,27 +271,27 @@ public function getAbandonLicenseShouldReturnValidResponse()
{
$this->_request = new LicenseRequest();
$this->_request->setContentId(84071201);
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for('204'));
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor('204'));
$final_response = $this->_license_factory->abandonLicense($this->_request, 'test', $this->_mocked_http_client);
$this->assertEquals(204, $final_response);
}
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getAbandonLicenseContentIdNullShouldThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request = new LicenseRequest();
$final_response = $this->_license_factory->abandonLicense($this->_request, 'test', $this->_mocked_http_client);
}
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getAbandonLicenseAccessTokenEmptyShouldThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request = new LicenseRequest();
$this->_request->setContentId(59741022);
$this->_request->setLicenseState('STANDARD');
@@ -300,14 +300,14 @@ public function getAbandonLicenseAccessTokenEmptyShouldThrowException()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getAbandonLicenseShouldThrowExceptionIfResponseCodeIsNot204()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request = new LicenseRequest();
$this->_request->setContentId(59741022);
$this->_request->setLicenseState('STANDARD');
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for('205'));
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor('205'));
$final_response = $this->_license_factory->abandonLicense($this->_request, 'test', $this->_mocked_http_client);
}
@@ -345,7 +345,7 @@ public function downloadAssetRequestShouldReturnValidRequestObject()
],
];
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for(json_encode($response)));
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor(json_encode($response)));
$request = new LicenseRequest();
$request->setContentId(84071201)->setLicenseState('STANDARD');
$guzzle_request = $this->_license_factory->downloadAssetRequest($request, 'access_token', $this->_mocked_http_client);
@@ -353,13 +353,13 @@ public function downloadAssetRequestShouldReturnValidRequestObject()
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Could not find the licensing information for the asset
*/
public function downloadAssetRequestShouldThrowExceptionSinceLicenseInfoNull()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Could not find the licensing information for the asset');
$response = [];
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for(json_encode($response)));
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor(json_encode($response)));
$request = new LicenseRequest();
$request->setContentId(84071201)->setLicenseState('STANDARD');
$guzzle_request = $this->_license_factory->downloadAssetRequest($request, 'access_token', $this->_mocked_http_client);
@@ -367,11 +367,11 @@ public function downloadAssetRequestShouldThrowExceptionSinceLicenseInfoNull()
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Could not find the purchase details for the asset
*/
public function downloadAssetRequestShouldThrowExceptionSincePurchaseDetailsNull()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Could not find the purchase details for the asset');
$response = [
'member' =>
[
@@ -393,7 +393,7 @@ public function downloadAssetRequestShouldThrowExceptionSincePurchaseDetailsNull
],
],
];
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for(json_encode($response)));
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor(json_encode($response)));
$request = new LicenseRequest();
$request->setContentId(84071201)->setLicenseState('STANDARD');
$guzzle_request = $this->_license_factory->downloadAssetRequest($request, 'access_token', $this->_mocked_http_client);
@@ -401,11 +401,13 @@ public function downloadAssetRequestShouldThrowExceptionSincePurchaseDetailsNull
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Content not licensed but have enough quota or overage plan, so first buy the license
*/
public function downloadAssetRequestShouldThrowExceptionSinceAssetNotPurchasedButCanBeLicensed()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage(
+ 'Content not licensed but have enough quota or overage plan, so first buy the license'
+ );
$response = [
'member' =>
[
@@ -434,7 +436,7 @@ public function downloadAssetRequestShouldThrowExceptionSinceAssetNotPurchasedBu
'message' => 'This will use 1 of your 6 licenses.',
],
];
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for(json_encode($response)));
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor(json_encode($response)));
$request = new LicenseRequest();
$request->setContentId(84071201)->setLicenseState('STANDARD');
$guzzle_request = $this->_license_factory->downloadAssetRequest($request, 'access_token', $this->_mocked_http_client);
@@ -442,11 +444,11 @@ public function downloadAssetRequestShouldThrowExceptionSinceAssetNotPurchasedBu
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Content not licensed and also you do not have enough quota or overage plan
*/
public function downloadAssetRequestShouldThrowExceptionSinceAssetNotPurchasedAndCannotBeLicensed()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Content not licensed and also you do not have enough quota or overage plan');
$response = [
'member' =>
[
@@ -475,7 +477,7 @@ public function downloadAssetRequestShouldThrowExceptionSinceAssetNotPurchasedAn
'message' => 'This will use 1 of your 6 licenses.',
],
];
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for(json_encode($response)));
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor(json_encode($response)));
$request = new LicenseRequest();
$request->setContentId(84071201)->setLicenseState('STANDARD');
$guzzle_request = $this->_license_factory->downloadAssetRequest($request, 'access_token', $this->_mocked_http_client);
@@ -483,11 +485,13 @@ public function downloadAssetRequestShouldThrowExceptionSinceAssetNotPurchasedAn
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Content not licensed but have enough quota or overage plan, so first buy the license
*/
public function downloadAssetRequestShouldThrowExceptionSinceAssetNotPurchasedButOveragePlanPresent()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage(
+ 'Content not licensed but have enough quota or overage plan, so first buy the license'
+ );
$response = [
'member' =>
[
@@ -516,7 +520,7 @@ public function downloadAssetRequestShouldThrowExceptionSinceAssetNotPurchasedBu
'message' => 'This will use 1 of your 6 licenses.',
],
];
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for(json_encode($response)));
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor(json_encode($response)));
$request = new LicenseRequest();
$request->setContentId(84071201)->setLicenseState('STANDARD');
$guzzle_request = $this->_license_factory->downloadAssetRequest($request, 'access_token', $this->_mocked_http_client);
@@ -524,11 +528,11 @@ public function downloadAssetRequestShouldThrowExceptionSinceAssetNotPurchasedBu
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Could not find the purchase details for the asset
*/
public function downloadAssetRequestShouldThrowExceptionSinceAssetUrlNotPresent()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Could not find the purchase details for the asset');
$response = [
'member' =>
[
@@ -556,7 +560,7 @@ public function downloadAssetRequestShouldThrowExceptionSinceAssetUrlNotPresent(
],
],
];
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for(json_encode($response)));
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor(json_encode($response)));
$request = new LicenseRequest();
$request->setContentId(84071201)->setLicenseState('STANDARD');
$guzzle_request = $this->_license_factory->downloadAssetRequest($request, 'access_token', $this->_mocked_http_client);
@@ -564,11 +568,11 @@ public function downloadAssetRequestShouldThrowExceptionSinceAssetUrlNotPresent(
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Could not find the available licenses for the user
*/
public function downloadAssetRequestShouldThrowExceptionSinceEntitlementIsNotPresent()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Could not find the available licenses for the user');
$response = [
'member' =>
[
@@ -593,7 +597,7 @@ public function downloadAssetRequestShouldThrowExceptionSinceEntitlementIsNotPre
'message' => 'This will use 1 of your 6 licenses.',
],
];
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for(json_encode($response)));
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor(json_encode($response)));
$request = new LicenseRequest();
$request->setContentId(84071201)->setLicenseState('STANDARD');
$guzzle_request = $this->_license_factory->downloadAssetRequest($request, 'access_token', $this->_mocked_http_client);
@@ -601,11 +605,11 @@ public function downloadAssetRequestShouldThrowExceptionSinceEntitlementIsNotPre
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Could not find the user purchasing options for the asset
*/
public function downloadAssetRequestShouldThrowExceptionSincePurchasingOptionsIsNotPresent()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Could not find the user purchasing options for the asset');
$response = [
'member' =>
[
@@ -628,7 +632,7 @@ public function downloadAssetRequestShouldThrowExceptionSincePurchasingOptionsIs
],
],
];
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for(json_encode($response)));
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor(json_encode($response)));
$request = new LicenseRequest();
$request->setContentId(84071201)->setLicenseState('STANDARD');
$guzzle_request = $this->_license_factory->downloadAssetRequest($request, 'access_token', $this->_mocked_http_client);
@@ -636,11 +640,11 @@ public function downloadAssetRequestShouldThrowExceptionSincePurchasingOptionsIs
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Could not find the purchase details for the asset
*/
public function downloadAssetRequestShouldThrowExceptionSincePurchasingStateIsNotPresent()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Could not find the purchase details for the asset');
$response = [
'member' =>
[
@@ -658,7 +662,7 @@ public function downloadAssetRequestShouldThrowExceptionSincePurchasingStateIsNo
],
],
];
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for(json_encode($response)));
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor(json_encode($response)));
$request = new LicenseRequest();
$request->setContentId(84071201)->setLicenseState('STANDARD');
$guzzle_request = $this->_license_factory->downloadAssetRequest($request, 'access_token', $this->_mocked_http_client);
diff --git a/test/src/Api/Client/LicenseHistoryFactoryTest.php b/test/src/Api/Client/LicenseHistoryFactoryTest.php
index 6c6f88b..50672ca 100644
--- a/test/src/Api/Client/LicenseHistoryFactoryTest.php
+++ b/test/src/Api/Client/LicenseHistoryFactoryTest.php
@@ -116,7 +116,7 @@ public function initializeConstructorOfLicenseHistoryFactory()
public function getNextLicenseHistoryShouldReturnValidResponse()
{
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1);
@@ -129,13 +129,13 @@ public function getNextLicenseHistoryShouldReturnValidResponse()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage No more search results available!
*/
public function getNextLicenseHistoryShouldThrowExceptionSinceOffsetExceedResultCount()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('No more search results available!');
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1)->setOffset(3);
@@ -147,18 +147,18 @@ public function getNextLicenseHistoryShouldThrowExceptionSinceOffsetExceedResult
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage No more search results available!
*/
public function getNextLicenseHistoryShouldThrowExceptionWhenResultCountZero()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('No more search results available!');
$_zero_response = [
'nb_results' => 0,
'files' => [
],
];
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode($_zero_response)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode($_zero_response)));
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1);
@@ -170,14 +170,14 @@ public function getNextLicenseHistoryShouldThrowExceptionWhenResultCountZero()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage No more license file results available!
*/
public function getNextLicenseHistoryShouldThrowExceptionWhenResultsCountNotPresentResponse()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('No more license file results available!');
$_zero_response = [];
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode($_zero_response)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode($_zero_response)));
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1);
@@ -192,7 +192,7 @@ public function getNextLicenseHistoryShouldThrowExceptionWhenResultsCountNotPres
public function getPreviousLicenseHistoryShouldReturnValidResponse()
{
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1)->setOffset(1);
@@ -205,13 +205,13 @@ public function getPreviousLicenseHistoryShouldReturnValidResponse()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage No more search results available!
*/
public function getPreviousLicenseHistoryShouldThrowExceptionWhenOffsetIsNegative()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('No more search results available!');
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1)->setOffset(0);
@@ -222,13 +222,13 @@ public function getPreviousLicenseHistoryShouldThrowExceptionWhenOffsetIsNegativ
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Page index out of bounds
*/
public function getLicenseHistoryPageShouldThrowExceptionWhenInvalidPageindex()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Page index out of bounds');
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1);
@@ -243,7 +243,7 @@ public function getLicenseHistoryPageShouldThrowExceptionWhenInvalidPageindex()
public function getLicenseHistoryPageShouldReturnValidResponse()
{
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1);
@@ -260,7 +260,7 @@ public function getLicenseHistoryPageShouldReturnValidResponse()
public function getLastLicenseHistoryShouldReturnNullResponseWithoutApicall()
{
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1);
@@ -276,7 +276,7 @@ public function getLastLicenseHistoryShouldReturnNullResponseWithoutApicall()
public function currentLicenseHistoryPageIndexShouldReturnErrorwhenCalledWithoutApiCall()
{
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1);
@@ -292,7 +292,7 @@ public function currentLicenseHistoryPageIndexShouldReturnErrorwhenCalledWithout
public function getTotalLicenseHistoryFilesShouldReturnErrorWhenCalledWithoutApiCall()
{
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1);
@@ -308,7 +308,7 @@ public function getTotalLicenseHistoryFilesShouldReturnErrorWhenCalledWithoutApi
public function getTotalLicenseHistoryFilesShouldReturnTotalFiles()
{
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1);
@@ -325,7 +325,7 @@ public function getTotalLicenseHistoryFilesShouldReturnTotalFiles()
public function getTotalLicenseHistoryPagesShouldReturnTotalPages()
{
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(LicenseHistoryFactoryTest::TEST_RESPONSE)));
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1);
@@ -351,11 +351,11 @@ public function licenseHistoryShouldReturnNewObjectOfLicenseHistoryClass()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
- * @expectedException Access token cannot be null or empty
*/
public function initializeLicenseHistoryShouldThrowExceptionSinceExcessTokenIsNull()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Access token cannot be null or empty');
$this->_request = new LicenseHistoryRequest();
$search_params = new SearchParamLicenseHistoryModels();
$search_params->setLimit(1);
@@ -365,22 +365,22 @@ public function initializeLicenseHistoryShouldThrowExceptionSinceExcessTokenIsNu
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage request cannot be null
*/
public function initializeLicenseHistoryShouldThrowStockExceptionSinceRequestIsNull()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('request cannot be null');
$this->_request = null;
$this->_license_history_factory->initializeLicenseHistory($this->_request, '', $this->_mocked_http_client);
}
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Search parameter must be present in the request object
*/
public function licenseHistoryShouldThrowStockexceptionSinceSearchParamsAreNull()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Search parameter must be present in the request object');
$this->_request = new LicenseHistoryRequest();
$result_column_array[] = 'THUMBNAIL_110_URL';
$this->_request->setResultColumns($result_column_array);
diff --git a/test/src/Api/Client/SearchCategoryFactoryTest.php b/test/src/Api/Client/SearchCategoryFactoryTest.php
index f5b296c..614f9aa 100644
--- a/test/src/Api/Client/SearchCategoryFactoryTest.php
+++ b/test/src/Api/Client/SearchCategoryFactoryTest.php
@@ -60,7 +60,7 @@ public function getCategoryShouldReturnValidResponse()
{
$this->_request = new SearchCategoryRequest();
$this->_request->setCategoryId(1043);
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for('{
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor('{
"id": 1043,
"link": "/Category/travel/1043",
"name": "Travel"
@@ -71,12 +71,12 @@ public function getCategoryShouldReturnValidResponse()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getCategoryShouldThrowExceptionIfCategoryIdIsNull()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request = new SearchCategoryRequest();
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for('{
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor('{
"id": 1043,
"link": "/Category/travel/1043",
"name": "Travel"
@@ -86,12 +86,12 @@ public function getCategoryShouldThrowExceptionIfCategoryIdIsNull()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function getCategoryTreeShouldThrowExceptionIfCategoryIdIsNull()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request = new SearchCategoryRequest();
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for('{
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor('{
"id": 1043,
"link": "/Category/travel/1043",
"name": "Travel"
@@ -106,7 +106,7 @@ public function getCategoryTreeShouldReturnValidResponse()
{
$this->_request = new SearchCategoryRequest();
$this->_request->setCategoryId(1043);
- $this->_mocked_http_client->method('doGet')->willReturn(Psr7\stream_for('[{
+ $this->_mocked_http_client->method('doGet')->willReturn(Psr7\Utils::streamFor('[{
"id": 1043,
"link": "/Category/travel/1043",
"name": "Travel"
diff --git a/test/src/Api/Client/SearchFilesFactoryTest.php b/test/src/Api/Client/SearchFilesFactoryTest.php
index 1832ea7..6221299 100644
--- a/test/src/Api/Client/SearchFilesFactoryTest.php
+++ b/test/src/Api/Client/SearchFilesFactoryTest.php
@@ -118,7 +118,7 @@ public function initializeConstructorOfSearchFilesFactory()
public function getNextResponseShouldReturnValidResponse()
{
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
$this->_request = new SearchFilesRequest();
$search_params = new SearchParametersModels();
$search_params->setWords('tree');
@@ -131,13 +131,13 @@ public function getNextResponseShouldReturnValidResponse()
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage No more search results available!
*/
public function getNextResponseShouldThrowExceptionSinceOffsetExceedResultCount()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('No more search results available!');
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
$this->_request = new SearchFilesRequest();
$search_params = new SearchParametersModels();
$offset_value = SearchFilesFactoryTest::TEST_NB_RESULTS - SearchFilesFactoryTest::TEST_DEFAULT_LIMIT;
@@ -150,18 +150,18 @@ public function getNextResponseShouldThrowExceptionSinceOffsetExceedResultCount(
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage No more search results available!
*/
public function getNextResponseShouldThrowExceptionWhenResultCountZero()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('No more search results available!');
$_zero_response = [
'nb_results' => 0,
'files' => [
],
];
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode($_zero_response)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode($_zero_response)));
$this->_request = new SearchFilesRequest();
$search_params = new SearchParametersModels();
$search_params->setWords('tree');
@@ -173,14 +173,14 @@ public function getNextResponseShouldThrowExceptionWhenResultCountZero()
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage No more search results available!
*/
public function getNextResponseShouldThrowExceptionWhenResultsCountNotPresentResponse()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('No more search results available!');
$_zero_response = [];
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode($_zero_response)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode($_zero_response)));
$this->_request = new SearchFilesRequest();
$search_params = new SearchParametersModels();
$search_params->setWords('tree');
@@ -195,7 +195,7 @@ public function getNextResponseShouldThrowExceptionWhenResultsCountNotPresentRes
public function getPreviousResponseShouldReturnValidResponse()
{
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
$this->_request = new SearchFilesRequest();
$search_params = new SearchParametersModels();
$offset_value = SearchFilesFactoryTest::TEST_DEFAULT_LIMIT;
@@ -209,13 +209,13 @@ public function getPreviousResponseShouldReturnValidResponse()
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Offset should be between 0 and MaxResults
*/
public function getPreviousResponseShouldThrowExceptionWhenOffsetIsNegative()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Offset should be between 0 and MaxResults');
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
$this->_request = new SearchFilesRequest();
$search_params = new SearchParametersModels();
$search_params->setWords('tree')->setOffset(0);
@@ -226,13 +226,13 @@ public function getPreviousResponseShouldThrowExceptionWhenOffsetIsNegative()
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Page index out of bounds
*/
public function getResponsePageShouldThrowExceptionWhenInvalidPageindex()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Page index out of bounds');
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
$this->_request = new SearchFilesRequest();
$search_params = new SearchParametersModels();
$search_params->setWords('tree');
@@ -255,7 +255,7 @@ public function getResponsePageShouldThrowExceptionWhenInvalidPageindex()
public function getResponsePageShouldReturnValidResponse()
{
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
$this->_request = new SearchFilesRequest();
$search_params = new SearchParametersModels();
$search_params->setWords('tree');
@@ -284,7 +284,7 @@ public function getLastResponseShouldReturnNullResponseWithoutApicall()
$this->_request->setSearchParams($search_params);
$this->_request->setResultColumns($result_column_array);
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
$this->_search_files_factory->searchFilesInitialize($this->_request, '', $this->_mocked_http_client, true);
$response = $this->_search_files_factory->getLastResponse();
$this->assertNull($response->getNbResults());
@@ -305,7 +305,7 @@ public function getLastResponseShouldNotReturnWhenNotPresentNbResults()
$this->_request->setSearchParams($search_params);
$this->_request->setResultColumns($result_column_array);
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
$this->_search_files_factory->searchFilesInitialize($this->_request, '', $this->_mocked_http_client, true);
$response = $this->_search_files_factory->getLastResponse();
$this->assertNull($response->getNbResults());
@@ -322,7 +322,7 @@ public function currentSearchPageIndexShouldReturnErrorwhenCalledWithoutApiCall(
$search_params->setWords('tree');
$this->_request->setSearchParams($search_params);
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
$this->_search_files_factory->searchFilesInitialize($this->_request, '', $this->_mocked_http_client, true);
$response = $this->_search_files_factory->currentSearchPageIndex();
$this->assertEquals(-1, $response);
@@ -339,7 +339,7 @@ public function totalSearchFilesShouldReturnErrorWhenCalledWithoutApiCall()
$search_params->setWords('tree');
$this->_request->setSearchParams($search_params);
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
$this->_search_files_factory->searchFilesInitialize($this->_request, '', $this->_mocked_http_client, true);
$response = $this->_search_files_factory->totalSearchFiles();
$this->assertEquals(-1, $response);
@@ -356,7 +356,7 @@ public function totalSearchFilesShouldReturnTotalFiles()
$search_params->setWords('tree');
$this->_request->setSearchParams($search_params);
$this->_mocked_http_client->method('doGet')
- ->willReturn(Psr7\stream_for(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
$this->_search_files_factory->searchFilesInitialize($this->_request, '', $this->_mocked_http_client, true);
$response = $this->_search_files_factory->getNextResponse();
$count = $this->_search_files_factory->totalSearchFiles();
@@ -381,11 +381,11 @@ public function searchFilesShouldReturnNewObjectOfSearchFilesClass()
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage request cannot be null
*/
public function searchFilesInitializeShouldThrowStockExceptionSinceSearchRequestParameterIsNull()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('request cannot be null');
$this->_request = null;
try {
@@ -416,11 +416,11 @@ public function searchFilesShouldThrowStockExceptionSinceSearchParametersFieldOf
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Search parameter must be present in the request object
*/
public function searchFilesShouldThrowStockexceptionSinceSearchParamsAreNull()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Search parameter must be present in the request object');
$this->_request = new SearchFilesRequest();
$result_column_array[] = 'is_licensed';
$this->_request->setResultColumns($result_column_array);
@@ -429,11 +429,11 @@ public function searchFilesShouldThrowStockexceptionSinceSearchParamsAreNull()
/**
* @test
- * @expectedException AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Access Token missing! Result Column is_licensed requires authentication
*/
public function searchFilesShouldThrowStockexceptionSinceIsLicensedRequestedInResultsAndAccessTokenIsNull()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Access Token missing! Result Column is_licensed requires authentication');
$this->_request = new SearchFilesRequest();
$search_params = new SearchParametersModels();
$search_params->setWords('tree');
@@ -455,7 +455,7 @@ public function searchFilesShouldThrowStockexceptionSinceIsLicensedRequestedInRe
public function testVisualSearch()
{
$this->_mocked_http_client->method('doMultiPart')
- ->willReturn(Psr7\stream_for(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
$this->_request = new SearchFilesRequest();
$search_params = new SearchParametersModels();
$search_params->setSimilarImage(true);
@@ -466,13 +466,15 @@ public function testVisualSearch()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
- * @exceptedExceptionMessage Image Data missing! Search parameter similar_image requires similar_image in query parameters
*/
public function testVisualSearchThrowExceptionIfSimilarImageISNotSet()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage(
+ 'Image Data missing! Search parameter similar_image requires similar_image in query parameters'
+ );
$this->_mocked_http_client->method('doMultiPart')
- ->willReturn(Psr7\stream_for(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
+ ->willReturn(Psr7\Utils::streamFor(json_encode(SearchFilesFactoryTest::TEST_RESPONSE)));
$this->_request = new SearchFilesRequest();
$search_params = new SearchParametersModels();
$search_params->setSimilarImage(true);
diff --git a/test/src/Api/Models/LicenseContentTest.php b/test/src/Api/Models/LicenseContentTest.php
index c50f156..a6fa8ff 100644
--- a/test/src/Api/Models/LicenseContentTest.php
+++ b/test/src/Api/Models/LicenseContentTest.php
@@ -54,10 +54,10 @@ public function setterGetterShouldSetGetContentId()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setterGetterShouldSetGetSize()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_license_content->setSize('Comp');
$this->assertEquals('Comp', $this->_license_content->getSize());
$this->_license_content->setSize('Original');
diff --git a/test/src/Api/Models/LicensePurchaseDetailsTest.php b/test/src/Api/Models/LicensePurchaseDetailsTest.php
index 5ca0afa..602fbe3 100644
--- a/test/src/Api/Models/LicensePurchaseDetailsTest.php
+++ b/test/src/Api/Models/LicensePurchaseDetailsTest.php
@@ -111,10 +111,10 @@ public function setterGetterShouldSetGetDuration()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setterGetterShouldSetGetLicense()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_license_purchase_details->setLicense('STANDARD');
$this->assertEquals('Standard', $this->_license_purchase_details->getLicense());
$this->_license_purchase_details->setLicense('TEST');
@@ -122,10 +122,10 @@ public function setterGetterShouldSetGetLicense()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setterGetterShouldSetGetState()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_license_purchase_details->setState('NOT_PURCHASED');
$this->assertEquals('not_purchased', $this->_license_purchase_details->getState());
$this->_license_purchase_details->setState('TEST');
@@ -133,10 +133,10 @@ public function setterGetterShouldSetGetState()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setterGetterShouldSetGetDate()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_license_purchase_details->setDate('2017-06-18 05:57:21.246303');
$this->assertEquals('2017-06-18 05:57:21.246303', $this->_license_purchase_details->getDate());
$this->_license_purchase_details->setDate('2017-06-18 05:57:21');
@@ -146,10 +146,10 @@ public function setterGetterShouldSetGetDate()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setterGetterShouldSetGetCancelled()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_license_purchase_details->setCancelled('2017-06-18 05:57:21');
$this->assertEquals('2017-06-18 05:57:21', $this->_license_purchase_details->getCancelled());
$this->_license_purchase_details->setCancelled('2017-06-18 05:57:21.67');
diff --git a/test/src/Api/Models/LicensePurchaseOptionsTest.php b/test/src/Api/Models/LicensePurchaseOptionsTest.php
index eed431a..9d6c64b 100644
--- a/test/src/Api/Models/LicensePurchaseOptionsTest.php
+++ b/test/src/Api/Models/LicensePurchaseOptionsTest.php
@@ -41,10 +41,10 @@ public function initializeConstructorOfLicensePurchaseOptions()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setterGetterShouldSetGetState()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_license_purchase_options->setPurchaseState('NOT_PURCHASED');
$this->assertEquals('not_purchased', $this->_license_purchase_options->getPurchaseState());
$this->_license_purchase_options->setPurchaseState('TEST');
diff --git a/test/src/Api/Models/LicenseReferenceTest.php b/test/src/Api/Models/LicenseReferenceTest.php
index 4cff5b3..e50b9f2 100644
--- a/test/src/Api/Models/LicenseReferenceTest.php
+++ b/test/src/Api/Models/LicenseReferenceTest.php
@@ -39,10 +39,10 @@ public function initializeConstructorOfLicenseReference()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setterGetterShouldSetGetLicenseReferenceId()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_license_reference->setLicenseReferenceId(1234);
$this->assertEquals(1234, $this->_license_reference->getLicenseReferenceId());
$this->_license_reference->setLicenseReferenceId(-1);
@@ -50,10 +50,10 @@ public function setterGetterShouldSetGetLicenseReferenceId()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setterGetterShouldSetGetLicenseReferenceValue()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_license_reference->setLicenseReferenceValue('test2');
$this->assertEquals('test2', $this->_license_reference->getLicenseReferenceValue());
$this->_license_reference->setLicenseReferenceValue('');
diff --git a/test/src/Api/Models/SearchParamLicenseHistoryTest.php b/test/src/Api/Models/SearchParamLicenseHistoryTest.php
index bb64cf1..064d469 100644
--- a/test/src/Api/Models/SearchParamLicenseHistoryTest.php
+++ b/test/src/Api/Models/SearchParamLicenseHistoryTest.php
@@ -29,11 +29,11 @@ public function initialize()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Limit should be greater than 0
*/
public function testLimit()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Limit should be greater than 0');
$this->search_params_license_history->setLimit(50);
$this->assertEquals(50, $this->search_params_license_history->getLimit());
$this->search_params_license_history->setLimit(-1);
@@ -41,11 +41,11 @@ public function testLimit()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Offset should be greater than 0
*/
public function testOffset()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Offset should be greater than 0');
$this->search_params_license_history->setOffset(100);
$this->assertEquals(100, $this->search_params_license_history->getOffset());
$this->search_params_license_history->setOffset(-1);
@@ -53,11 +53,11 @@ public function testOffset()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
- * @expectedExceptionMessage Invalid Thumbnail size
*/
public function testThumbnailSize()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
+ $this->expectExceptionMessage('Invalid Thumbnail size');
$this->search_params_license_history->setThumbnailSize(110);
$this->assertEquals(110, $this->search_params_license_history->getThumbnailSize());
$this->search_params_license_history->setThumbnailSize(100);
diff --git a/test/src/Api/Models/SearchParametersTest.php b/test/src/Api/Models/SearchParametersTest.php
index 74964c0..3db6337 100644
--- a/test/src/Api/Models/SearchParametersTest.php
+++ b/test/src/Api/Models/SearchParametersTest.php
@@ -29,10 +29,10 @@ public function initialize()
}
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testCreatorId()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->search_params->setCreatorId(100);
$this->assertEquals(100, $this->search_params->getCreatorId());
$this->search_params->setCreatorId(-1);
@@ -40,10 +40,10 @@ public function testCreatorId()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testMediaId()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->search_params->setMediaId(100);
$this->assertEquals(100, $this->search_params->getMediaId());
$this->search_params->setMediaId(-1);
@@ -51,10 +51,10 @@ public function testMediaId()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testModelId()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->search_params->setModelId(100);
$this->assertEquals(100, $this->search_params->getModelId());
$this->search_params->setModelId(-1);
@@ -62,10 +62,10 @@ public function testModelId()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testSerieId()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->search_params->setSerieId(100);
$this->assertEquals(100, $this->search_params->getSerieId());
$this->search_params->setSerieId(-1);
@@ -73,10 +73,10 @@ public function testSerieId()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testSimilar()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->search_params->setSimilar(100);
$this->assertEquals(100, $this->search_params->getSimilar());
$this->search_params->setSimilar(-1);
@@ -84,10 +84,10 @@ public function testSimilar()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testCategory()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->search_params->setCategory(100);
$this->assertEquals(100, $this->search_params->getCategory());
$this->search_params->setCategory(-1);
@@ -95,10 +95,10 @@ public function testCategory()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testLimit()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->search_params->setLimit(50);
$this->assertEquals(50, $this->search_params->getLimit());
$this->search_params->setLimit(-1);
@@ -106,10 +106,10 @@ public function testLimit()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testOffset()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->search_params->setOffset(100);
$this->assertEquals(100, $this->search_params->getOffset());
$this->search_params->setOffset(-1);
@@ -117,10 +117,10 @@ public function testOffset()
/**
* @test
- * @expectedException \TypeError
*/
public function testWords()
{
+ $this->expectException(\TypeError::class);
$this->search_params->setWords('Tree');
$this->assertEquals('Tree', $this->search_params->getWords());
$this->search_params->setWords(null);
@@ -128,10 +128,10 @@ public function testWords()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testSimilarURL()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->search_params->setSimilarURL('xyz.com');
$this->assertEquals('xyz.com', $this->search_params->getSimilarURL());
$this->search_params->setSimilarURL('');
@@ -139,10 +139,10 @@ public function testSimilarURL()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testFilterColors()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->search_params->setFilterColors('Blue');
$this->assertEquals('Blue', $this->search_params->getFilterColors());
$this->search_params->setFilterColors('');
@@ -150,10 +150,10 @@ public function testFilterColors()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testGalleryId()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->search_params->setGalleryId('Id');
$this->assertEquals('Id', $this->search_params->getGalleryId());
$this->search_params->setGalleryId('');
@@ -161,10 +161,10 @@ public function testGalleryId()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testFilterAreaPixels()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->search_params->setFilterAreaPixels(1000);
$this->assertEquals(1000, $this->search_params->getFilterAreaPixels());
$this->search_params->setFilterAreaPixels(-1);
@@ -327,10 +327,10 @@ public function testFilterVideoDuration()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testFilterTemplateTypes()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$type = [
'PSDT',
];
@@ -341,10 +341,10 @@ public function testFilterTemplateTypes()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testFilter3DTypeIds()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$type = [
'Models',
];
@@ -355,10 +355,10 @@ public function testFilter3DTypeIds()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function testFilterTemplateCategoryIds()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$type = [
'ALL',
];
diff --git a/test/src/Api/Request/FilesRequestTest.php b/test/src/Api/Request/FilesRequestTest.php
index 6e33f06..2bf694e 100644
--- a/test/src/Api/Request/FilesRequestTest.php
+++ b/test/src/Api/Request/FilesRequestTest.php
@@ -73,28 +73,28 @@ public function testToArrayReturnsValidArray() : void
/**
* @test
- * @expectedException \TypeError
*/
public function setIdsThrowException()
{
+ $this->expectException(\TypeError::class);
$this->_request->setIds(null);
}
/**
* @test
- * @expectedException \TypeError
*/
public function setLocaleThrowException()
{
+ $this->expectException(\TypeError::class);
$this->_request->setLocale(null);
}
/**
* @test
- * @expectedException \TypeError
*/
public function setResultColumnsThrowException()
{
+ $this->expectException(\TypeError::class);
$this->_request->setResultColumns(null);
}
}
diff --git a/test/src/Api/Request/LicenseHistoryRequestTest.php b/test/src/Api/Request/LicenseHistoryRequestTest.php
index 17ef6a1..4fac855 100644
--- a/test/src/Api/Request/LicenseHistoryRequestTest.php
+++ b/test/src/Api/Request/LicenseHistoryRequestTest.php
@@ -53,29 +53,28 @@ public function testAllTheGettersSettersReturnandSetTheProperValue()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setSearchParamsThrowException()
{
- $search_params = new SearchParamLicenseHistoryModel();
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request->setSearchParams(null);
}
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setLocaleThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request->setLocale(null);
}
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setResultColumnsThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request->setResultColumns([]);
}
}
diff --git a/test/src/Api/Request/LicenseRequestTest.php b/test/src/Api/Request/LicenseRequestTest.php
index c39bcbb..d8a26de 100644
--- a/test/src/Api/Request/LicenseRequestTest.php
+++ b/test/src/Api/Request/LicenseRequestTest.php
@@ -41,10 +41,10 @@ public function setterGetterShouldSetGetContentId()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setterGetterShouldSetGetLocale()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request->setLocale('En-US');
$this->assertEquals('En-US', $this->_request->getLocale());
$this->_request->setLocale('');
@@ -52,19 +52,19 @@ public function setterGetterShouldSetGetLocale()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setContentIdShouldThrowExceptionIfNegativeValueIsPassed()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request->setContentId(-1);
}
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setterGetterShouldSetGetLicenseState()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request->setLicenseState('STANDARD');
$this->assertEquals('Standard', $this->_request->getLicenseState());
$this->_request->setLicenseState('');
@@ -72,10 +72,10 @@ public function setterGetterShouldSetGetLicenseState()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setterGetterShouldSetGetPurchaseState()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request->setPurchaseState('NOT_PURCHASED');
$this->assertEquals('not_purchased', $this->_request->getPurchaseState());
$this->_request->setPurchaseState('');
@@ -93,10 +93,10 @@ public function setterGetterShouldSetGetFormat()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setterGetterShouldSetGetLicenseReference()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$data = [
['id' => 1,
'value' => 'test',
diff --git a/test/src/Api/Request/SearchCategoryRequestTest.php b/test/src/Api/Request/SearchCategoryRequestTest.php
index e346537..b063b4c 100644
--- a/test/src/Api/Request/SearchCategoryRequestTest.php
+++ b/test/src/Api/Request/SearchCategoryRequestTest.php
@@ -43,10 +43,10 @@ public function setterGetterShouldSetGetCategoryId()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setterGetterShouldSetGetLocale()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request->setLocale('En-US');
$this->assertEquals('En-US', $this->_request->getLocale());
$this->_request->setLocale('');
@@ -54,10 +54,10 @@ public function setterGetterShouldSetGetLocale()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setCategoryIdShouldThrowExceptionIfNegativeValueIsPassed()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request->setCategoryId(-1);
}
diff --git a/test/src/Api/Request/SearchFilesRequestTest.php b/test/src/Api/Request/SearchFilesRequestTest.php
index 64f3f83..c62ee2d 100644
--- a/test/src/Api/Request/SearchFilesRequestTest.php
+++ b/test/src/Api/Request/SearchFilesRequestTest.php
@@ -55,38 +55,37 @@ public function testAllTheGettersSettersReturnandSetTheProperValue()
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setSearchParamsThrowException()
{
- $search_params = new SearchParametersModels();
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request->setSearchParams(null);
}
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setLocaleThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request->setLocale(null);
}
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setResultColumnsThrowException()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request->setResultColumns([]);
}
/**
* @test
- * @expectedException \AdobeStock\Api\Exception\StockApi
*/
public function setSimilarImageThrowExceptionIfFileDoesntExist()
{
+ $this->expectException(\AdobeStock\Api\Exception\StockApi::class);
$this->_request->setSimilarImage('');
}
}