diff --git a/.phpunit.result.cache b/.phpunit.result.cache new file mode 100644 index 0000000..e98b45b --- /dev/null +++ b/.phpunit.result.cache @@ -0,0 +1 @@ +C:37:"PHPUnit\Runner\DefaultTestResultCache":44:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:0:{}}} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index cb02b45..392a860 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,13 +3,12 @@ php: - 5.4 - 5.5 - 5.6 -script: phpunit --coverage-clover=coverage.clover + - 7.0 +script: + - vendor/bin/phpunit branches: only: - master before_script: - - wget http://getcomposer.org/composer.phar - - php composer.phar install -after_script: - - wget https://scrutinizer-ci.com/ocular.phar - - php ocular.phar code-coverage:upload --format=php-clover coverage.clover \ No newline at end of file + - composer self-update + - composer install --prefer-source --no-interaction --dev diff --git a/README.md b/README.md index 09a96d3..c5d80ef 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Crie um arquivo chamado `composer.json` com o seguinte conteúdo: ```json { "minimum-stability": "dev", - "prefer-stable" : true, + "prefer-stable": true, "require": { "boletosimples/boletosimples": "dev-master" } @@ -47,7 +47,7 @@ require_once 'vendor/autoload.php'; BoletoSimples::configure(array( "environment" => 'production', // default: 'sandbox' - "access_token" => 'access-token' + "api_token" => 'api-token' )); ?> @@ -59,9 +59,8 @@ Você também pode configurar as variáveis de ambiente a seguir e não será ne ```bash ENV['BOLETOSIMPLES_ENV'] -ENV['BOLETOSIMPLES_APP_ID'] -ENV['BOLETOSIMPLES_APP_SECRET'] -ENV['BOLETOSIMPLES_ACCESS_TOKEN'] +ENV['BOLETOSIMPLES_USER_AGENT'] +ENV['BOLETOSIMPLES_API_TOKEN'] ``` ## Exemplos diff --git a/composer.json b/composer.json index f16bc36..3b04bf2 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,12 @@ "name": "boletosimples/boletosimples", "type": "library", "description": "A PHP client library for easily accessing Boleto Simples API.", - "keywords": ["boleto","simples","boletosimples","ecommerce"], + "keywords": [ + "boleto", + "simples", + "boletosimples", + "ecommerce" + ], "homepage": "http://api.boletosimples.com.br", "license": "MIT", "authors": [ @@ -10,27 +15,36 @@ "name": "Rafael Lima", "email": "contato@rafael.adm.br", "homepage": "http://rafael.adm.br/" + }, + { + "name": "Kivanio Barbosa", + "email": "kivanio@gmail.com", + "homepage": "http://kivanio.com.br/" } ], - "support": { - "email": "suporte@boletosimples.com.br", - "issues": "http://github.com/BoletoSimples/boletosimples-php/issues", - "sources": "https://github.com/BoletoSimples/boletosimples-php" - }, - "require": { - "guzzlehttp/guzzle": "5.*", - "commerceguys/guzzle-oauth2-plugin": "2.*" + "support": { + "email": "suporte@boletosimples.com.br", + "issues": "http://github.com/BoletoSimples/boletosimples-php/issues", + "sources": "https://github.com/BoletoSimples/boletosimples-php" + }, + "require-dev": { + "php-vcr/php-vcr": "^1.5", + "php-vcr/phpunit-testlistener-vcr": "^3.2", + "ptrofimov/xpmock": "dev-master", + "phpunit/phpunit": "^9" }, - "require-dev": { - "phpunit/phpunit": "4.5.*", - "php-vcr/php-vcr": "~1.2", - "php-vcr/phpunit-testlistener-vcr": "*", - "ptrofimov/xpmock": "dev-master" - }, "autoload": { "psr-4": { - "BoletoSimples\\": ["src/BoletoSimples","src/BoletoSimples/Resources"] + "BoletoSimples\\": [ + "src/BoletoSimples", + "src/BoletoSimples/Resources" + ] }, - "files": ["src/BoletoSimples.php"] + "files": [ + "src/BoletoSimples.php" + ] + }, + "require": { + "guzzlehttp/guzzle": "^7.3" } } diff --git a/composer.lock b/composer.lock index 61f2d1a..66ebc53 100644 --- a/composer.lock +++ b/composer.lock @@ -4,34 +4,57 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "12a813cca8d2a8b689207a643dc2cbf9", + "content-hash": "11908ba2827cbf4b116be5a1a2d33903", "packages": [ { - "name": "commerceguys/guzzle-oauth2-plugin", - "version": "v2.1.1", + "name": "guzzlehttp/guzzle", + "version": "7.3.0", "source": { "type": "git", - "url": "https://github.com/commerceguys/guzzle-oauth2-plugin.git", - "reference": "f7ed19171c3c5accfb6f0b3d1209eb5815ef8148" + "url": "https://github.com/guzzle/guzzle.git", + "reference": "7008573787b430c1c1f650e3722d9bba59967628" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/commerceguys/guzzle-oauth2-plugin/zipball/f7ed19171c3c5accfb6f0b3d1209eb5815ef8148", - "reference": "f7ed19171c3c5accfb6f0b3d1209eb5815ef8148", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/7008573787b430c1c1f650e3722d9bba59967628", + "reference": "7008573787b430c1c1f650e3722d9bba59967628", "shasum": "" }, "require": { - "firebase/php-jwt": "~2.0", - "guzzlehttp/guzzle": "~5.0" + "ext-json": "*", + "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": { - "phpunit/phpunit": "~4.5" + "bamarni/composer-bin-plugin": "^1.4.1", + "ext-curl": "*", + "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": "7.3-dev" + } + }, "autoload": { "psr-4": { - "CommerceGuys\\Guzzle\\Oauth2\\": "src" - } + "GuzzleHttp\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -39,98 +62,150 @@ ], "authors": [ { - "name": "Bojan Zivanovic" - }, - { - "name": "Damien Tournoud" + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" }, { - "name": "Patrick Dawkins" + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" } ], - "description": "An OAuth2 plugin (subscriber) for Guzzle", + "description": "Guzzle is a PHP HTTP client library", + "homepage": "http://guzzlephp.org/", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], "support": { - "issues": "https://github.com/commerceguys/guzzle-oauth2-plugin/issues", - "source": "https://github.com/commerceguys/guzzle-oauth2-plugin/tree/master" + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.3.0" }, - "time": "2015-12-12T23:27:25+00:00" + "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": "firebase/php-jwt", - "version": "v2.2.0", + "name": "guzzlehttp/promises", + "version": "1.4.1", "source": { "type": "git", - "url": "https://github.com/firebase/php-jwt.git", - "reference": "e0a75bfb6413f22092c99b70f310ccb2cca3efa5" + "url": "https://github.com/guzzle/promises.git", + "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/firebase/php-jwt/zipball/e0a75bfb6413f22092c99b70f310ccb2cca3efa5", - "reference": "e0a75bfb6413f22092c99b70f310ccb2cca3efa5", + "url": "https://api.github.com/repos/guzzle/promises/zipball/8e7d04f1f6450fef59366c399cfad4b9383aa30d", + "reference": "8e7d04f1f6450fef59366c399cfad4b9383aa30d", "shasum": "" }, "require": { - "php": ">=5.2.0" + "php": ">=5.5" + }, + "require-dev": { + "symfony/phpunit-bridge": "^4.4 || ^5.1" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, "autoload": { - "classmap": [ - "Authentication/", - "Exceptions/" + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + }, + "files": [ + "src/functions_include.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Neuman Vong", - "email": "neuman+pear@twilio.com", - "role": "Developer" - }, - { - "name": "Anant Narayanan", - "email": "anant@php.net", - "role": "Developer" + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" } ], - "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", - "homepage": "https://github.com/firebase/php-jwt", + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], "support": { - "issues": "https://github.com/firebase/php-jwt/issues", - "source": "https://github.com/firebase/php-jwt/tree/v2.2.0" + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/1.4.1" }, - "time": "2015-06-22T23:26:39+00:00" + "time": "2021-03-07T09:25:29+00:00" }, { - "name": "guzzlehttp/guzzle", - "version": "5.3.4", + "name": "guzzlehttp/psr7", + "version": "1.8.1", "source": { "type": "git", - "url": "https://github.com/guzzle/guzzle.git", - "reference": "b87eda7a7162f95574032da17e9323c9899cb6b2" + "url": "https://github.com/guzzle/psr7.git", + "reference": "35ea11d335fd638b5882ff1725228b3d35496ab1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b87eda7a7162f95574032da17e9323c9899cb6b2", - "reference": "b87eda7a7162f95574032da17e9323c9899cb6b2", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/35ea11d335fd638b5882ff1725228b3d35496ab1", + "reference": "35ea11d335fd638b5882ff1725228b3d35496ab1", "shasum": "" }, "require": { - "guzzlehttp/ringphp": "^1.1", "php": ">=5.4.0", - "react/promise": "^2.2" + "psr/http-message": "~1.0", + "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" + }, + "provide": { + "psr/http-message-implementation": "1.0" }, "require-dev": { - "ext-curl": "*", - "phpunit/phpunit": "^4.0" + "ext-zlib": "*", + "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.7-dev" + } + }, "autoload": { "psr-4": { - "GuzzleHttp\\": "src/" - } + "GuzzleHttp\\Psr7\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -141,60 +216,56 @@ "name": "Michael Dowling", "email": "mtdowling@gmail.com", "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Schultze", + "homepage": "https://github.com/Tobion" } ], - "description": "Guzzle is a PHP HTTP client library and framework for building RESTful web service clients", - "homepage": "http://guzzlephp.org/", + "description": "PSR-7 message implementation that also provides common utility methods", "keywords": [ - "client", - "curl", - "framework", "http", - "http client", - "rest", - "web service" + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" ], "support": { - "issues": "https://github.com/guzzle/guzzle/issues", - "source": "https://github.com/guzzle/guzzle/tree/5.3" + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/1.8.1" }, - "time": "2019-10-30T09:32:00+00:00" + "time": "2021-03-21T16:25:00+00:00" }, { - "name": "guzzlehttp/ringphp", - "version": "1.1.1", + "name": "psr/http-client", + "version": "1.0.1", "source": { "type": "git", - "url": "https://github.com/guzzle/RingPHP.git", - "reference": "5e2a174052995663dd68e6b5ad838afd47dd615b" + "url": "https://github.com/php-fig/http-client.git", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/RingPHP/zipball/5e2a174052995663dd68e6b5ad838afd47dd615b", - "reference": "5e2a174052995663dd68e6b5ad838afd47dd615b", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", "shasum": "" }, "require": { - "guzzlehttp/streams": "~3.0", - "php": ">=5.4.0", - "react/promise": "~2.0" - }, - "require-dev": { - "ext-curl": "*", - "phpunit/phpunit": "~4.0" - }, - "suggest": { - "ext-curl": "Guzzle will use specific adapters if cURL is present" + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { "psr-4": { - "GuzzleHttp\\Ring\\": "src/" + "Psr\\Http\\Client\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -203,48 +274,49 @@ ], "authors": [ { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" } ], - "description": "Provides a simple API and specification that abstracts away the details of HTTP into a single PHP function.", + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], "support": { - "issues": "https://github.com/guzzle/RingPHP/issues", - "source": "https://github.com/guzzle/RingPHP/tree/1.1.1" + "source": "https://github.com/php-fig/http-client/tree/master" }, - "abandoned": true, - "time": "2018-07-31T13:22:33+00:00" + "time": "2020-06-29T06:28:15+00:00" }, { - "name": "guzzlehttp/streams", - "version": "3.0.0", + "name": "psr/http-message", + "version": "1.0.1", "source": { "type": "git", - "url": "https://github.com/guzzle/streams.git", - "reference": "47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5" + "url": "https://github.com/php-fig/http-message.git", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/streams/zipball/47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5", - "reference": "47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", "shasum": "" }, "require": { - "php": ">=5.4.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" + "php": ">=5.3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { "psr-4": { - "GuzzleHttp\\Stream\\": "src/" + "Psr\\Http\\Message\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -253,51 +325,50 @@ ], "authors": [ { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" } ], - "description": "Provides a simple abstraction over streams of data", - "homepage": "http://guzzlephp.org/", + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", "keywords": [ - "Guzzle", - "stream" + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" ], "support": { - "issues": "https://github.com/guzzle/streams/issues", - "source": "https://github.com/guzzle/streams/tree/master" + "source": "https://github.com/php-fig/http-message/tree/master" }, - "abandoned": true, - "time": "2014-10-12T19:18:40+00:00" + "time": "2016-08-06T14:39:51+00:00" }, { - "name": "react/promise", - "version": "v2.8.0", + "name": "ralouphie/getallheaders", + "version": "3.0.3", "source": { "type": "git", - "url": "https://github.com/reactphp/promise.git", - "reference": "f3cff96a19736714524ca0dd1d4130de73dbbbc4" + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise/zipball/f3cff96a19736714524ca0dd1d4130de73dbbbc4", - "reference": "f3cff96a19736714524ca0dd1d4130de73dbbbc4", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", "shasum": "" }, "require": { - "php": ">=5.4.0" + "php": ">=5.6" }, "require-dev": { - "phpunit/phpunit": "^7.0 || ^6.5 || ^5.7 || ^4.8.36" + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" }, "type": "library", "autoload": { - "psr-4": { - "React\\Promise\\": "src/" - }, "files": [ - "src/functions_include.php" + "src/getallheaders.php" ] }, "notification-url": "https://packagist.org/downloads/", @@ -306,20 +377,16 @@ ], "authors": [ { - "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com" + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" } ], - "description": "A lightweight implementation of CommonJS Promises/A for PHP", - "keywords": [ - "promise", - "promises" - ], + "description": "A polyfill for getallheaders.", "support": { - "issues": "https://github.com/reactphp/promise/issues", - "source": "https://github.com/reactphp/promise/tree/v2.8.0" + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" }, - "time": "2020-05-12T15:16:56+00:00" + "time": "2019-03-08T08:55:37+00:00" } ], "packages-dev": [ @@ -459,189 +526,414 @@ "time": "2020-11-10T18:47:58+00:00" }, { - "name": "php-vcr/php-vcr", - "version": "1.5.0", + "name": "myclabs/deep-copy", + "version": "1.10.2", "source": { "type": "git", - "url": "https://github.com/php-vcr/php-vcr.git", - "reference": "1b152a62f5289373d40eee456992f32abfae144f" + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-vcr/php-vcr/zipball/1b152a62f5289373d40eee456992f32abfae144f", - "reference": "1b152a62f5289373d40eee456992f32abfae144f", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220", + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220", "shasum": "" }, "require": { - "beberlei/assert": "^3.2.5", - "ext-curl": "*", - "php": ">=7.2", - "symfony/event-dispatcher": "^2.4|^3.0|^4.0|^5.0", - "symfony/yaml": "~2.1|^3.0|^4.0|^5.0" + "php": "^7.1 || ^8.0" + }, + "replace": { + "myclabs/deep-copy": "self.version" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.16", - "mikey179/vfsstream": "^1.6", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-beberlei-assert": "^0.12.0", - "phpunit/phpunit": "^7.4.3", - "sebastian/version": "^1.0.3|^2.0", - "thecodingmachine/phpstan-strict-rules": "^0.12" + "doctrine/collections": "^1.0", + "doctrine/common": "^2.6", + "phpunit/phpunit": "^7.1" }, "type": "library", "autoload": { "psr-4": { - "VCR\\": "src/VCR/" - } + "DeepCopy\\": "src/DeepCopy/" + }, + "files": [ + "src/DeepCopy/deep_copy.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "authors": [ - { - "name": "Adrian Philipp", - "email": "mail@adrian-philipp.com" - } + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" ], - "description": "Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.", "support": { - "issues": "https://github.com/php-vcr/php-vcr/issues", - "source": "https://github.com/php-vcr/php-vcr/tree/master" + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2" }, - "time": "2020-07-28T11:55:05+00:00" + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2020-11-13T09:40:50+00:00" }, { - "name": "php-vcr/phpunit-testlistener-vcr", - "version": "3.2.1", + "name": "nikic/php-parser", + "version": "v4.10.4", "source": { "type": "git", - "url": "https://github.com/php-vcr/phpunit-testlistener-vcr.git", - "reference": "299aaf88533cee3ae64e99bdc6ad5b97fb495f21" + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "c6d052fc58cb876152f89f532b95a8d7907e7f0e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-vcr/phpunit-testlistener-vcr/zipball/299aaf88533cee3ae64e99bdc6ad5b97fb495f21", - "reference": "299aaf88533cee3ae64e99bdc6ad5b97fb495f21", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/c6d052fc58cb876152f89f532b95a8d7907e7f0e", + "reference": "c6d052fc58cb876152f89f532b95a8d7907e7f0e", "shasum": "" }, "require": { - "php": "^7.1", - "php-vcr/php-vcr": "^1.4" + "ext-tokenizer": "*", + "php": ">=7.0" }, "require-dev": { - "phpunit/phpunit": "^7.0" + "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": { - "VCR\\PHPUnit\\TestListener\\": "src/" + "PhpParser\\": "lib/PhpParser" } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Adrian Philipp", - "email": "mail@adrian-philipp.com" + "name": "Nikita Popov" } ], - "description": "Integrates PHPUnit with PHP-VCR.", + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], "support": { - "issues": "https://github.com/php-vcr/phpunit-testlistener-vcr/issues", - "source": "https://github.com/php-vcr/phpunit-testlistener-vcr/tree/master" + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v4.10.4" }, - "time": "2018-07-06T08:53:21+00:00" + "time": "2020-12-20T10:01:03+00:00" }, { - "name": "phpdocumentor/reflection-common", - "version": "2.2.0", + "name": "phar-io/manifest", + "version": "2.0.1", "source": { "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" + "url": "https://github.com/phar-io/manifest.git", + "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", - "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/85265efd3af7ba3ca4b2a2c34dbfc5788dd29133", + "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133", "shasum": "" }, "require": { + "ext-dom": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", "php": "^7.2 || ^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-2.x": "2.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src/" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" } ], - "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "http://www.phpdoc.org", - "keywords": [ - "FQSEN", - "phpDocumentor", - "phpdoc", - "reflection", - "static analysis" - ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", "support": { - "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", - "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.x" + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/master" }, - "time": "2020-06-27T09:03:43+00:00" + "time": "2020-06-27T14:33:11+00:00" }, { - "name": "phpdocumentor/reflection-docblock", - "version": "5.2.2", + "name": "phar-io/version", + "version": "3.1.0", "source": { "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556" + "url": "https://github.com/phar-io/version.git", + "reference": "bae7c545bef187884426f042434e561ab1ddb182" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556", - "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556", + "url": "https://api.github.com/repos/phar-io/version/zipball/bae7c545bef187884426f042434e561ab1ddb182", + "reference": "bae7c545bef187884426f042434e561ab1ddb182", "shasum": "" }, "require": { - "ext-filter": "*", - "php": "^7.2 || ^8.0", - "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^1.3", - "webmozart/assert": "^1.9.1" - }, - "require-dev": { - "mockery/mockery": "~1.3.2" + "php": "^7.2 || ^8.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.x-dev" - } - }, "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "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": "php-vcr/php-vcr", + "version": "1.5.2", + "source": { + "type": "git", + "url": "https://github.com/php-vcr/php-vcr.git", + "reference": "989fdcad482d830890757b8165127ed0183de41b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-vcr/php-vcr/zipball/989fdcad482d830890757b8165127ed0183de41b", + "reference": "989fdcad482d830890757b8165127ed0183de41b", + "shasum": "" + }, + "require": { + "beberlei/assert": "^3.2.5", + "ext-curl": "*", + "php": ">=7.2", + "symfony/event-dispatcher": "^2.4|^3.0|^4.0|^5.0", + "symfony/yaml": "~2.1|^3.0|^4.0|^5.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.16", + "mikey179/vfsstream": "^1.6", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-beberlei-assert": "^0.12.0", + "phpunit/phpunit": "^8.4.0", + "sebastian/version": "^1.0.3|^2.0", + "thecodingmachine/phpstan-strict-rules": "^0.12" + }, + "type": "library", + "autoload": { + "psr-4": { + "VCR\\": "src/VCR/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Adrian Philipp", + "email": "mail@adrian-philipp.com" + } + ], + "description": "Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.", + "support": { + "issues": "https://github.com/php-vcr/php-vcr/issues", + "source": "https://github.com/php-vcr/php-vcr/tree/1.5.2" + }, + "time": "2021-03-20T10:01:20+00:00" + }, + { + "name": "php-vcr/phpunit-testlistener-vcr", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/php-vcr/phpunit-testlistener-vcr.git", + "reference": "299aaf88533cee3ae64e99bdc6ad5b97fb495f21" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-vcr/phpunit-testlistener-vcr/zipball/299aaf88533cee3ae64e99bdc6ad5b97fb495f21", + "reference": "299aaf88533cee3ae64e99bdc6ad5b97fb495f21", + "shasum": "" + }, + "require": { + "php": "^7.1", + "php-vcr/php-vcr": "^1.4" + }, + "require-dev": { + "phpunit/phpunit": "^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "VCR\\PHPUnit\\TestListener\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Adrian Philipp", + "email": "mail@adrian-philipp.com" + } + ], + "description": "Integrates PHPUnit with PHP-VCR.", + "support": { + "issues": "https://github.com/php-vcr/phpunit-testlistener-vcr/issues", + "source": "https://github.com/php-vcr/phpunit-testlistener-vcr/tree/master" + }, + "time": "2018-07-06T08:53:21+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "2.2.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "reference": "1d01c49d4ed62f25aa84a747ad35d5a16924662b", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "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": "5.2.2", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556", + "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": "^7.2 || ^8.0", + "phpdocumentor/reflection-common": "^2.2", + "phpdocumentor/type-resolver": "^1.3", + "webmozart/assert": "^1.9.1" + }, + "require-dev": { + "mockery/mockery": "~1.3.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -715,33 +1007,33 @@ }, { "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": { @@ -753,68 +1045,566 @@ "license": [ "MIT" ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "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": "9.2.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "f6293e1b30a2354e8428e004689671b83871edde" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f6293e1b30a2354e8428e004689671b83871edde", + "reference": "f6293e1b30a2354e8428e004689671b83871edde", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "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": "^9.3" + }, + "suggest": { + "ext-pcov": "*", + "ext-xdebug": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.2-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 that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "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": "3.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/aa4be8575f26070b100fccb67faabb28f21f66f8", + "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.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": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "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-invoker", + "version": "3.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "reference": "5a10147d0aaf65b58940a0b72f71c9ac0423cc67", + "shasum": "" + }, + "require": { + "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/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "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-text-template", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "reference": "5da5f67fc95621df9ff4c4e5a84d6a8a2acf7c28", + "shasum": "" + }, + "require": { + "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": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "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": "2020-10-26T05:33:50+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "5.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "reference": "5a63ce20ed1b5bf577850e2c4e87f4aa902afbd2", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.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": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "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": "9.5.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "c73c6737305e779771147af66c96ca6a7ed8a741" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c73c6737305e779771147af66c96ca6a7ed8a741", + "reference": "c73c6737305e779771147af66c96ca6a7ed8a741", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.3.1", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.1", + "phar-io/manifest": "^2.0.1", + "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", + "sebastian/version": "^3.0.2" + }, + "require-dev": { + "ext-pdo": "*", + "phpspec/prophecy-phpunit": "^2.0.1" + }, + "suggest": { + "ext-soap": "*", + "ext-xdebug": "*" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "9.5-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ], + "files": [ + "src/Framework/Assert/Functions.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.4" + }, + "funding": [ + { + "url": "https://phpunit.de/donate.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-03-23T07:16:29+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "ptrofimov/xpmock", + "version": "dev-master", + "source": { + "type": "git", + "url": "https://github.com/ptrofimov/xpmock.git", + "reference": "9f73ff444df2ee51e17349afb1296fafaf366201" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ptrofimov/xpmock/zipball/9f73ff444df2ee51e17349afb1296fafaf366201", + "reference": "9f73ff444df2ee51e17349afb1296fafaf366201", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "3.7.*" + }, + "default-branch": true, + "type": "library", + "autoload": { + "psr-0": { + "Xpmock": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPUnit: simple syntax to create mock-objects", "support": { - "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.10.3" + "issues": "https://github.com/ptrofimov/xpmock/issues", + "source": "https://github.com/ptrofimov/xpmock/tree/master" }, - "time": "2020-03-05T15:02:03+00:00" + "time": "2017-07-31T08:23:23+00:00" }, { - "name": "phpunit/php-code-coverage", - "version": "2.2.4", + "name": "sebastian/cli-parser", + "version": "1.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979" + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979", - "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", "shasum": "" }, "require": { - "php": ">=5.3.3", - "phpunit/php-file-iterator": "~1.3", - "phpunit/php-text-template": "~1.2", - "phpunit/php-token-stream": "~1.3", - "sebastian/environment": "^1.3.2", - "sebastian/version": "~1.0" + "php": ">=7.3" }, "require-dev": { - "ext-xdebug": ">=2.1.4", - "phpunit/phpunit": "~4" - }, - "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.2.1", - "ext-xmlwriter": "*" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.2.x-dev" + "dev-master": "1.0-dev" } }, "autoload": { @@ -829,92 +1619,106 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", + "email": "sebastian@phpunit.de", "role": "lead" } ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", "support": { - "irc": "irc://irc.freenode.net/phpunit", - "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/2.2" + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.1" }, - "time": "2015-10-06T15:47:00+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:08:49+00:00" }, { - "name": "phpunit/php-file-iterator", - "version": "1.3.4", + "name": "sebastian/code-unit", + "version": "1.0.8", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "acd690379117b042d1c8af1fafd61bde001bf6bb" + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/acd690379117b042d1c8af1fafd61bde001bf6bb", - "reference": "acd690379117b042d1c8af1fafd61bde001bf6bb", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/1fc9f64c0927627ef78ba436c9b17d967e68e120", + "reference": "1fc9f64c0927627ef78ba436c9b17d967e68e120", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, "autoload": { "classmap": [ - "File/" + "src/" ] }, "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "" - ], "license": [ "BSD-3-Clause" ], "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", + "email": "sebastian@phpunit.de", "role": "lead" } ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", "support": { - "irc": "irc://irc.freenode.net/phpunit", - "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/1.3.4" + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" }, - "time": "2013-10-10T15:34:57+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:08:54+00:00" }, { - "name": "phpunit/php-text-template", - "version": "1.2.1", + "name": "sebastian/code-unit-reverse-lookup", + "version": "2.0.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", + "reference": "ac91f01ccec49fb77bdc6fd1e548bc70f7faa3e5", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "^9.3" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, "autoload": { "classmap": [ "src/" @@ -927,45 +1731,49 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "email": "sebastian@phpunit.de" } ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", "support": { - "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" }, - "time": "2015-06-21T13:50:34+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:30:19+00:00" }, { - "name": "phpunit/php-timer", - "version": "1.0.9", + "name": "sebastian/comparator", + "version": "4.0.6", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "55f4261989e546dc112258c7a75935a81a7ce382" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382", + "reference": "55f4261989e546dc112258c7a75935a81a7ce382", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0" + "php": ">=7.3", + "sebastian/diff": "^4.0", + "sebastian/exporter": "^4.0" }, "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -980,46 +1788,65 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" } ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", "keywords": [ - "timer" + "comparator", + "compare", + "equality" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/master" + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6" }, - "time": "2017-02-26T11:10:40+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:49:45+00:00" }, { - "name": "phpunit/php-token-stream", - "version": "1.4.12", + "name": "sebastian/complexity", + "version": "2.0.2", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16" + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16", - "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", + "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", "shasum": "" }, "require": { - "ext-tokenizer": "*", - "php": ">=5.3.3" + "nikic/php-parser": "^4.7", + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "~4.2" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -1034,66 +1861,49 @@ "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/", - "keywords": [ - "tokenizer" - ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", "support": { - "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", - "source": "https://github.com/sebastianbergmann/php-token-stream/tree/1.4" + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.2" }, - "abandoned": true, - "time": "2017-12-04T08:55:13+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:52:27+00:00" }, { - "name": "phpunit/phpunit", - "version": "4.5.1", + "name": "sebastian/diff", + "version": "4.0.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "d6429b0995b24a2d9dfe5587ee3a7071c1161af4" + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d6429b0995b24a2d9dfe5587ee3a7071c1161af4", - "reference": "d6429b0995b24a2d9dfe5587ee3a7071c1161af4", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d", + "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d", "shasum": "" }, "require": { - "ext-dom": "*", - "ext-json": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-spl": "*", - "php": ">=5.3.3", - "phpspec/prophecy": "~1.3,>=1.3.1", - "phpunit/php-code-coverage": "~2.0,>=2.0.11", - "phpunit/php-file-iterator": "~1.3.2", - "phpunit/php-text-template": "~1.2", - "phpunit/php-timer": "~1.0.2", - "phpunit/phpunit-mock-objects": "~2.3", - "sebastian/comparator": "~1.1", - "sebastian/diff": "~1.1", - "sebastian/environment": "~1.2", - "sebastian/exporter": "~1.2", - "sebastian/global-state": "~1.0", - "sebastian/version": "~1.0", - "symfony/yaml": "~2.0" + "php": ">=7.3" }, - "suggest": { - "phpunit/php-invoker": "~1.1" + "require-dev": { + "phpunit/phpunit": "^9.3", + "symfony/process": "^4.2 || ^5" }, - "bin": [ - "phpunit" - ], "type": "library", "extra": { "branch-alias": { - "dev-master": "4.5.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -1108,54 +1918,60 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" } ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", "keywords": [ - "phpunit", - "testing", - "xunit" + "diff", + "udiff", + "unidiff", + "unified diff" ], "support": { - "irc": "irc://irc.freenode.net/phpunit", - "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/4.5.1" + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4" }, - "time": "2015-03-29T09:24:05+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:10:38+00:00" }, { - "name": "phpunit/phpunit-mock-objects", - "version": "2.3.8", + "name": "sebastian/environment", + "version": "5.1.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983" + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "388b6ced16caa751030f6a69e588299fa09200ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983", - "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac", + "reference": "388b6ced16caa751030f6a69e588299fa09200ac", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.0.2", - "php": ">=5.3.3", - "phpunit/php-text-template": "~1.2", - "sebastian/exporter": "~1.2" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^9.3" }, "suggest": { - "ext-soap": "*" + "ext-posix": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.3.x-dev" + "dev-master": "5.1-dev" } }, "autoload": { @@ -1170,138 +1986,194 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" + "email": "sebastian@phpunit.de" } ], - "description": "Mock Object library for PHPUnit", - "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", "keywords": [ - "mock", - "xunit" + "Xdebug", + "environment", + "hhvm" ], "support": { - "irc": "irc://irc.freenode.net/phpunit", - "issues": "https://github.com/sebastianbergmann/phpunit-mock-objects/issues", - "source": "https://github.com/sebastianbergmann/phpunit-mock-objects/tree/2.3" + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3" }, - "abandoned": true, - "time": "2015-10-02T06:51:40+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:52:38+00:00" }, { - "name": "psr/event-dispatcher", - "version": "1.0.0", + "name": "sebastian/exporter", + "version": "4.0.3", "source": { "type": "git", - "url": "https://github.com/php-fig/event-dispatcher.git", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", - "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/d89cc98761b8cb5a1a235a6b703ae50d34080e65", + "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65", "shasum": "" }, "require": { - "php": ">=7.2.0" + "php": ">=7.3", + "sebastian/recursion-context": "^4.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { - "psr-4": { - "Psr\\EventDispatcher\\": "src/" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" } ], - "description": "Standard interfaces for event handling.", + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", "keywords": [ - "events", - "psr", - "psr-14" + "export", + "exporter" ], "support": { - "issues": "https://github.com/php-fig/event-dispatcher/issues", - "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3" }, - "time": "2019-01-08T18:20:26+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T05:24:23+00:00" }, { - "name": "ptrofimov/xpmock", - "version": "dev-master", + "name": "sebastian/global-state", + "version": "5.0.2", "source": { "type": "git", - "url": "https://github.com/ptrofimov/xpmock.git", - "reference": "9f73ff444df2ee51e17349afb1296fafaf366201" + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "a90ccbddffa067b51f574dea6eb25d5680839455" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ptrofimov/xpmock/zipball/9f73ff444df2ee51e17349afb1296fafaf366201", - "reference": "9f73ff444df2ee51e17349afb1296fafaf366201", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/a90ccbddffa067b51f574dea6eb25d5680839455", + "reference": "a90ccbddffa067b51f574dea6eb25d5680839455", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" }, "require-dev": { - "phpunit/phpunit": "3.7.*" + "ext-dom": "*", + "phpunit/phpunit": "^9.3" + }, + "suggest": { + "ext-uopz": "*" }, - "default-branch": true, "type": "library", - "autoload": { - "psr-0": { - "Xpmock": "src" + "extra": { + "branch-alias": { + "dev-master": "5.0-dev" } }, + "autoload": { + "classmap": [ + "src/" + ] + }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" ], - "description": "PHPUnit: simple syntax to create mock-objects", "support": { - "issues": "https://github.com/ptrofimov/xpmock/issues", - "source": "https://github.com/ptrofimov/xpmock/tree/master" + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.2" }, - "time": "2017-07-31T08:23:23+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T15:55:19+00:00" }, { - "name": "sebastian/comparator", - "version": "1.2.4", + "name": "sebastian/lines-of-code", + "version": "1.0.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", "shasum": "" }, "require": { - "php": ">=5.3.3", - "sebastian/diff": "~1.2", - "sebastian/exporter": "~1.2 || ~2.0" + "nikic/php-parser": "^4.6", + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.2.x-dev" + "dev-master": "1.0-dev" } }, "autoload": { @@ -1314,60 +2186,52 @@ "BSD-3-Clause" ], "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "http://www.github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" - ], + "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/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/1.2" + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.3" }, - "time": "2017-01-29T09:50:25+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-28T06:42:11+00:00" }, { - "name": "sebastian/diff", - "version": "1.4.3", + "name": "sebastian/object-enumerator", + "version": "4.0.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4" + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7f066a26a962dbe58ddea9f72a4e82874a3975a4", - "reference": "7f066a26a962dbe58ddea9f72a4e82874a3975a4", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71", + "reference": "5c9eeac41b290a3712d88851518825ad78f45c71", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0" + "php": ">=7.3", + "sebastian/object-reflector": "^2.0", + "sebastian/recursion-context": "^4.0" }, "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -1380,50 +2244,49 @@ "BSD-3-Clause" ], "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" } ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", - "keywords": [ - "diff" - ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", "support": { - "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/1.4" + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" }, - "time": "2017-05-22T07:24:03+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:12:34+00:00" }, { - "name": "sebastian/environment", - "version": "1.3.8", + "name": "sebastian/object-reflector", + "version": "2.0.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea" + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea", - "reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", + "reference": "b4f479ebdbf63ac605d183ece17d8d7fe49c15c7", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^4.8 || ^5.0" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3.x-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -1441,45 +2304,44 @@ "email": "sebastian@phpunit.de" } ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" - ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", "support": { - "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/1.3" + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" }, - "time": "2016-08-18T05:49:44+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:14:26+00:00" }, { - "name": "sebastian/exporter", - "version": "1.2.2", + "name": "sebastian/recursion-context", + "version": "4.0.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4" + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4", - "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/cd9d8cf3c5804de4341c283ed787f099f5506172", + "reference": "cd9d8cf3c5804de4341c283ed787f099f5506172", "shasum": "" }, "require": { - "php": ">=5.3.3", - "sebastian/recursion-context": "~1.0" + "php": ">=7.3" }, "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { @@ -1492,66 +2354,57 @@ "BSD-3-Clause" ], "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" - }, { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, { "name": "Adam Harvey", "email": "aharvey@php.net" } ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", "support": { - "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/master" + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.4" }, - "time": "2016-06-17T09:04:28+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:17:30+00:00" }, { - "name": "sebastian/global-state", - "version": "1.1.1", + "name": "sebastian/resource-operations", + "version": "3.0.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", - "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", + "reference": "0f4443cb3a1d92ce809899753bc0d5d5a8dd19a8", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "~4.2" - }, - "suggest": { - "ext-uopz": "*" + "phpunit/phpunit": "^9.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -1569,41 +2422,44 @@ "email": "sebastian@phpunit.de" } ], - "description": "Snapshotting of global state", - "homepage": "http://www.github.com/sebastianbergmann/global-state", - "keywords": [ - "global state" - ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", "support": { - "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/1.1.1" + "issues": "https://github.com/sebastianbergmann/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" }, - "time": "2015-10-12T03:26:01+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:45:17+00:00" }, { - "name": "sebastian/recursion-context", - "version": "1.0.5", + "name": "sebastian/type", + "version": "2.3.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7" + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "81cd61ab7bbf2de744aba0ea61fae32f721df3d2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7", - "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/81cd61ab7bbf2de744aba0ea61fae32f721df3d2", + "reference": "81cd61ab7bbf2de744aba0ea61fae32f721df3d2", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^9.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.3-dev" } }, "autoload": { @@ -1616,42 +2472,49 @@ "BSD-3-Clause" ], "authors": [ - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "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/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/master" + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/2.3.1" }, - "time": "2016-10-03T07:41:43+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-10-26T13:18:59+00:00" }, { "name": "sebastian/version", - "version": "1.0.6", + "version": "3.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6" + "reference": "c6c1022351a901512170118436c764e473f6de8c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c", + "reference": "c6c1022351a901512170118436c764e473f6de8c", "shasum": "" }, + "require": { + "php": ">=7.3" + }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, "autoload": { "classmap": [ "src/" @@ -1672,9 +2535,15 @@ "homepage": "https://github.com/sebastianbergmann/version", "support": { "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/1.0.6" + "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" }, - "time": "2015-06-21T13:59:46+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-09-28T06:39:44+00:00" }, { "name": "symfony/deprecation-contracts", @@ -1745,16 +2614,16 @@ }, { "name": "symfony/event-dispatcher", - "version": "v5.1.8", + "version": "v5.2.4", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "26f4edae48c913fc183a3da0553fe63bdfbd361a" + "reference": "d08d6ec121a425897951900ab692b612a61d6240" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/26f4edae48c913fc183a3da0553fe63bdfbd361a", - "reference": "26f4edae48c913fc183a3da0553fe63bdfbd361a", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d08d6ec121a425897951900ab692b612a61d6240", + "reference": "d08d6ec121a425897951900ab692b612a61d6240", "shasum": "" }, "require": { @@ -1807,10 +2676,10 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony EventDispatcher Component", + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/event-dispatcher/tree/v5.1.8" + "source": "https://github.com/symfony/event-dispatcher/tree/v5.2.4" }, "funding": [ { @@ -1826,7 +2695,7 @@ "type": "tidelift" } ], - "time": "2020-10-24T12:01:57+00:00" + "time": "2021-02-18T17:12:37+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -1909,16 +2778,16 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.20.0", + "version": "v1.22.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41" + "reference": "c6c942b1ac76c82448322025e084cadc56048b4e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f4ba089a5b6366e453971d3aad5fe8e897b37f41", - "reference": "f4ba089a5b6366e453971d3aad5fe8e897b37f41", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e", + "reference": "c6c942b1ac76c82448322025e084cadc56048b4e", "shasum": "" }, "require": { @@ -1930,7 +2799,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.20-dev" + "dev-main": "1.22-dev" }, "thanks": { "name": "symfony/polyfill", @@ -1968,7 +2837,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.20.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.1" }, "funding": [ { @@ -1984,20 +2853,20 @@ "type": "tidelift" } ], - "time": "2020-10-23T14:02:19+00:00" + "time": "2021-01-07T16:49:33+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.20.0", + "version": "v1.22.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "e70aa8b064c5b72d3df2abd5ab1e90464ad009de" + "reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/e70aa8b064c5b72d3df2abd5ab1e90464ad009de", - "reference": "e70aa8b064c5b72d3df2abd5ab1e90464ad009de", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dc3063ba22c2a1fd2f45ed856374d79114998f91", + "reference": "dc3063ba22c2a1fd2f45ed856374d79114998f91", "shasum": "" }, "require": { @@ -2006,7 +2875,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.20-dev" + "dev-main": "1.22-dev" }, "thanks": { "name": "symfony/polyfill", @@ -2051,7 +2920,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.20.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.22.1" }, "funding": [ { @@ -2067,32 +2936,40 @@ "type": "tidelift" } ], - "time": "2020-10-23T14:02:19+00:00" + "time": "2021-01-07T16:49:33+00:00" }, { "name": "symfony/yaml", - "version": "v2.8.52", + "version": "v5.2.5", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "02c1859112aa779d9ab394ae4f3381911d84052b" + "reference": "298a08ddda623485208506fcee08817807a251dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/02c1859112aa779d9ab394ae4f3381911d84052b", - "reference": "02c1859112aa779d9ab394ae4f3381911d84052b", + "url": "https://api.github.com/repos/symfony/yaml/zipball/298a08ddda623485208506fcee08817807a251dd", + "reference": "298a08ddda623485208506fcee08817807a251dd", "shasum": "" }, "require": { - "php": ">=5.3.9", + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1", "symfony/polyfill-ctype": "~1.8" }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.8-dev" - } + "conflict": { + "symfony/console": "<4.4" + }, + "require-dev": { + "symfony/console": "^4.4|^5.0" }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", "autoload": { "psr-4": { "Symfony\\Component\\Yaml\\": "" @@ -2115,39 +2992,108 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony Yaml Component", + "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v2.8.52" + "source": "https://github.com/symfony/yaml/tree/v5.2.5" + }, + "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" + } + ], + "time": "2021-03-06T07:59:01+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "75a63c33a8577608444246075ea0af0d052e452a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/75a63c33a8577608444246075ea0af0d052e452a", + "reference": "75a63c33a8577608444246075ea0af0d052e452a", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/master" }, - "time": "2018-11-11T11:18:13+00:00" + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2020-07-12T23:59:07+00:00" }, { "name": "webmozart/assert", - "version": "1.9.1", + "version": "1.10.0", "source": { "type": "git", - "url": "https://github.com/webmozart/assert.git", - "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" + "url": "https://github.com/webmozarts/assert.git", + "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", - "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25", + "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0 || ^8.0", + "php": "^7.2 || ^8.0", "symfony/polyfill-ctype": "^1.8" }, "conflict": { "phpstan/phpstan": "<0.12.20", - "vimeo/psalm": "<3.9.1" + "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/" @@ -2170,10 +3116,10 @@ "validate" ], "support": { - "issues": "https://github.com/webmozart/assert/issues", - "source": "https://github.com/webmozart/assert/tree/master" + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.10.0" }, - "time": "2020-07-08T17:02:28+00:00" + "time": "2021-03-09T10:59:23+00:00" } ], "aliases": [], diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 4f41433..73067ee 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,20 +1,18 @@ - - - - - tests/ - - - - - - src/ - - - - - - - - \ No newline at end of file + + + + src/ + + + + + tests/ + + + + + + + + diff --git a/src/BoletoSimples.php b/src/BoletoSimples.php index 5b79bf3..8fde405 100644 --- a/src/BoletoSimples.php +++ b/src/BoletoSimples.php @@ -1,7 +1,7 @@ 'https://sandbox.boletosimples.com.br/api/v1/', 'production' => 'https://boletosimples.com.br/api/v1/'); public $environment = null; - public $application_id = null; - public $application_secret = null; - public $access_token = null; + public $api_token = null; + public $user_agent = null; public function __construct($params = array()) { $default_environment = getenv('BOLETOSIMPLES_ENV') ? getenv('BOLETOSIMPLES_ENV') : 'sandbox'; - $default_application_id = getenv('BOLETOSIMPLES_APP_ID') ? getenv('BOLETOSIMPLES_APP_ID') : null; - $default_application_secret = getenv('BOLETOSIMPLES_APP_SECRET') ? getenv('BOLETOSIMPLES_APP_SECRET') : null; - $default_access_token = getenv('BOLETOSIMPLES_ACCESS_TOKEN') ? getenv('BOLETOSIMPLES_ACCESS_TOKEN') : null; + $default_user_agent = getenv('BOLETOSIMPLES_USER_AGENT') ? getenv('BOLETOSIMPLES_USER_AGENT') : null; + $default_api_token = getenv('BOLETOSIMPLES_API_TOKEN') ? getenv('BOLETOSIMPLES_API_TOKEN') : null; $this->environment = isset($params['environment']) ? $params['environment'] : $default_environment; - $this->application_id = isset($params['application_id']) ? $params['application_id'] : $default_application_id; - $this->application_secret = isset($params['application_secret']) ? $params['application_secret'] : $default_application_secret; - $this->access_token = isset($params['access_token']) ? $params['access_token'] : $default_access_token; + $this->user_agent = isset($params['user_agent']) ? $params['user_agent'] : $default_user_agent; + $this->api_token = isset($params['api_token']) ? $params['api_token'] : $default_api_token; } public function userAgent() { - return "BoletoSimples PHP Client v".\BoletoSimples::VERSION." (contato@boletosimples.com.br)"; + return $this->user_agent != null; } public function hasAccessToken() { - return $this->access_token != null; + return $this->api_token != null; } public function baseUri() { diff --git a/src/BoletoSimples/Resources/BaseResource.php b/src/BoletoSimples/Resources/BaseResource.php index f26aba2..2f02585 100644 --- a/src/BoletoSimples/Resources/BaseResource.php +++ b/src/BoletoSimples/Resources/BaseResource.php @@ -3,7 +3,6 @@ namespace BoletoSimples; use GuzzleHttp\Client; -use CommerceGuys\Guzzle\Oauth2\Oauth2Subscriber; class BaseResource { /** @@ -167,23 +166,17 @@ public static function __callStatic($name, $arguments) { return call_user_func_array("self::_".$name, $arguments); } - /** - * Configure the GuzzleHttp\Client with default options. - */ public static function configure() { $config = \BoletoSimples::$configuration; - $oauth2 = new Oauth2Subscriber(); - $oauth2->setAccessToken($config->access_token); - self::$client = new Client([ 'base_url' => $config->baseUri(), 'defaults' => [ 'headers' => [ - 'User-Agent' => $config->userAgent() + 'User-Agent' => $config->userAgent(), + 'Accept' => 'application/json', + 'Authorization' => 'Bearer ' . $config->api_token ], - 'auth' => 'oauth2', - 'subscribers' => [$oauth2] ], 'verify' => false ]); diff --git a/tests/BoletoSimples/ConfigurationTest.php b/tests/BoletoSimples/ConfigurationTest.php index fd1df01..52e360b 100644 --- a/tests/BoletoSimples/ConfigurationTest.php +++ b/tests/BoletoSimples/ConfigurationTest.php @@ -1,48 +1,40 @@ subject = new BoletoSimples\Configuration(); $this->assertEquals ($this->subject->environment, 'sandbox'); - $this->assertNull ($this->subject->application_id); - $this->assertNull ($this->subject->application_secret); - $this->assertNull ($this->subject->access_token); + $this->assertNull ($this->subject->api_token); + $this->assertNull ($this->subject->user_agent); $this->assertEquals ($this->subject->baseUri(), 'https://sandbox.boletosimples.com.br/api/v1/'); $this->assertFalse ($this->subject->hasAccessToken()); } - public function testUserAgent() { - $this->subject = new BoletoSimples\Configuration(); - $this->assertEquals ($this->subject->userAgent(), "BoletoSimples PHP Client v0.0.8 (contato@boletosimples.com.br)"); - } + public function testEnvironmentVariables() { putenv('BOLETOSIMPLES_ENV=production'); - putenv('BOLETOSIMPLES_APP_ID=app-id'); - putenv('BOLETOSIMPLES_APP_SECRET=app-secret'); - putenv('BOLETOSIMPLES_ACCESS_TOKEN=access-token'); + putenv('BOLETOSIMPLES_USER_AGENT=user-agent'); + putenv('BOLETOSIMPLES_API_TOKEN=api-token'); $this->subject = new BoletoSimples\Configuration(); $this->assertEquals ($this->subject->environment, 'production'); - $this->assertEquals ($this->subject->application_id, 'app-id'); - $this->assertEquals ($this->subject->application_secret, 'app-secret'); - $this->assertEquals ($this->subject->access_token, 'access-token'); + $this->assertEquals ($this->subject->user_agent, 'user-agent'); + $this->assertEquals ($this->subject->api_token, 'api-token'); $this->assertEquals ($this->subject->baseUri(), 'https://boletosimples.com.br/api/v1/'); $this->assertTrue ($this->subject->hasAccessToken()); } public function testConfiguration() { BoletoSimples::configure([ "environment" => 'production', - "application_id" => 'app-id', - "application_secret" => 'app-secret', - "access_token" => 'access-token' + "user_agent" => 'user-agent', + "api_token" => 'api-token' ]); $this->subject = BoletoSimples::$configuration; $this->assertEquals ($this->subject->environment, 'production'); - $this->assertEquals ($this->subject->application_id, 'app-id'); - $this->assertEquals ($this->subject->application_secret, 'app-secret'); - $this->assertEquals ($this->subject->access_token, 'access-token'); + $this->assertEquals ($this->subject->api_token, 'api-token'); + $this->assertEquals ($this->subject->user_agent, 'user-agent'); $this->assertEquals ($this->subject->baseUri(), 'https://boletosimples.com.br/api/v1/'); $this->assertTrue ($this->subject->hasAccessToken()); } diff --git a/tests/BoletoSimples/ExtraTest.php b/tests/BoletoSimples/ExtraTest.php index 0158c9b..015ef6a 100644 --- a/tests/BoletoSimples/ExtraTest.php +++ b/tests/BoletoSimples/ExtraTest.php @@ -1,6 +1,7 @@ 'sandbox', 'access_token' => 'invalid']); + BoletoSimples::configure(['environment' => 'sandbox', 'api_token' => 'invalid']); $bank_billet = BoletoSimples\BankBillet::find(1); } diff --git a/tests/BoletoSimples/Resources/BaseResourceTest.php b/tests/BoletoSimples/Resources/BaseResourceTest.php index 59d3e1e..a2d89d5 100644 --- a/tests/BoletoSimples/Resources/BaseResourceTest.php +++ b/tests/BoletoSimples/Resources/BaseResourceTest.php @@ -1,10 +1,11 @@ 'bar')); diff --git a/tests/BoletoSimples/Resources/CustomerTest.php b/tests/BoletoSimples/Resources/CustomerTest.php index 0a67245..345aee4 100644 --- a/tests/BoletoSimples/Resources/CustomerTest.php +++ b/tests/BoletoSimples/Resources/CustomerTest.php @@ -1,6 +1,7 @@ 'sandbox', 'access_token' => 'invalid']); + BoletoSimples::configure(['environment' => 'sandbox', 'api_token' => 'invalid']); $customer = BoletoSimples\Customer::find(1); } diff --git a/tests/BoletoSimples/Resources/TransactionTest.php b/tests/BoletoSimples/Resources/TransactionTest.php index 26d463e..cbacd76 100644 --- a/tests/BoletoSimples/Resources/TransactionTest.php +++ b/tests/BoletoSimples/Resources/TransactionTest.php @@ -1,6 +1,7 @@ assertEquals (BoletoSimples\Util::pluralize('bank_billet'), 'bank_billets'); $this->assertEquals (BoletoSimples\Util::pluralize('BankBillet'), 'BankBillets'); $this->assertEquals (BoletoSimples\Util::pluralize('bankbillet'), 'bankbillets'); } - public function testUnderscorize () { + public function testUnderscorize(): void { $this->assertEquals (BoletoSimples\Util::underscorize('BankBillet'), 'bank_billet'); $this->assertEquals (BoletoSimples\Util::underscorize('Bank Billet'), 'bank_billet'); $this->assertEquals (BoletoSimples\Util::underscorize('Bank-Billet'), 'bank_billet'); diff --git a/tests/fixtures/.gitkeep b/tests/fixtures/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/tests/fixtures/bank_billets/all/success b/tests/fixtures/bank_billets/all/success deleted file mode 100644 index c918f04..0000000 --- a/tests/fixtures/bank_billets/all/success +++ /dev/null @@ -1,36 +0,0 @@ - -- - request: - method: GET - url: 'https://sandbox.boletosimples.com.br/api/v1/bank_billets?page=1&per_page=2' - headers: - Host: sandbox.boletosimples.com.br - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.5 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: Cowboy - Connection: keep-alive - Strict-Transport-Security: max-age=2592000 - Link: '; rel="last", ; rel="next"' - Total: '110' - Content-Type: 'application/json; charset=utf-8' - X-Ratelimit-Limit: '500' - X-Ratelimit-Remaining: '498' - Etag: 'W/"4f721191657c4716b927b672cd0f3b65"' - Cache-Control: 'must-revalidate, private, max-age=0' - X-Request-Id: d90e7ee8-5207-4163-a5e9-7b532f1836c0 - X-Runtime: '0.048707' - Date: 'Sat, 07 Mar 2015 22:47:53 GMT' - X-Rack-Cache: miss - Vary: Accept-Encoding - Transfer-Encoding: chunked - Via: '1.1 vegur' - body: '[{"id":799,"expire_at":"2015-01-01","paid_at":null,"description":"Cobrança XPTO","status":"opened","shorten_url":"http://staging.bole.to/niq5avd4","customer_person_type":"individual","customer_person_name":"Joao da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio de Janeiro","paid_amount":0.0,"amount":9.99},{"id":798,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas do contrato 0012","status":"opened","shorten_url":"http://staging.bole.to/niq6avd3","customer_person_type":"individual","customer_person_name":"Joao da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","notification_url":"http://example.com.br/notify","send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio de Janeiro","paid_amount":0.0,"amount":9.01}]' diff --git a/tests/fixtures/bank_billets/cancel/success b/tests/fixtures/bank_billets/cancel/success deleted file mode 100644 index 807ebb3..0000000 --- a/tests/fixtures/bank_billets/cancel/success +++ /dev/null @@ -1,68 +0,0 @@ - -- - request: - method: GET - url: 'https://sandbox.boletosimples.com.br/api/v1/bank_billets/798' - headers: - Host: sandbox.boletosimples.com.br - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.5 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: Cowboy - Connection: keep-alive - Strict-Transport-Security: max-age=2592000 - Content-Type: 'application/json; charset=utf-8' - X-Ratelimit-Limit: '500' - X-Ratelimit-Remaining: '498' - Etag: 'W/"5372ed12c047e3ddea49267e3bb2552c"' - Cache-Control: 'must-revalidate, private, max-age=0' - X-Request-Id: 6f6540bd-c453-4bfb-a22b-dc4b36032003 - X-Runtime: '0.070023' - Date: 'Sun, 08 Mar 2015 01:09:20 GMT' - X-Rack-Cache: miss - Vary: Accept-Encoding - Transfer-Encoding: chunked - Via: '1.1 vegur' - body: '{"id":798,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas do contrato 0012","status":"opened","shorten_url":"http://staging.bole.to/niq6avd3","customer_person_type":"individual","customer_person_name":"Joao da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","notification_url":"http://example.com.br/notify","send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio de Janeiro","paid_amount":0.0,"amount":9.01}' -- - request: - method: PUT - url: 'https://sandbox.boletosimples.com.br/api/v1/bank_billets/798/cancel' - headers: - Host: sandbox.boletosimples.com.br - Content-Length: '0' - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.5 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: Cowboy - Connection: keep-alive - Strict-Transport-Security: max-age=2592000 - Content-Type: 'application/json; charset=utf-8' - X-Ratelimit-Limit: '500' - X-Ratelimit-Remaining: '497' - Etag: 'W/"904d2eb2e8ba6568b3a639fbebe2cddd"' - Cache-Control: 'max-age=0, private, must-revalidate' - X-Request-Id: 3b6777ea-a45d-4007-85f1-b668b2064c06 - X-Runtime: '0.300474' - Date: 'Sun, 08 Mar 2015 01:09:21 GMT' - X-Rack-Cache: 'invalidate, pass' - Vary: Accept-Encoding - Transfer-Encoding: chunked - Via: '1.1 vegur' - body: '{"id":798,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas do contrato 0012","status":"canceled","shorten_url":"http://staging.bole.to/niq6avd3","customer_person_type":"individual","customer_person_name":"Joao da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","notification_url":"http://example.com.br/notify","send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio de Janeiro","paid_amount":0.0,"amount":9.01}' diff --git a/tests/fixtures/bank_billets/create/invalid_params b/tests/fixtures/bank_billets/create/invalid_params deleted file mode 100644 index 189ce18..0000000 --- a/tests/fixtures/bank_billets/create/invalid_params +++ /dev/null @@ -1,35 +0,0 @@ - -- - request: - method: POST - url: 'https://sandbox.boletosimples.com.br/api/v1/bank_billets' - headers: - Host: sandbox.boletosimples.com.br - Expect: null - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.5 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - body: '{"bank_billet":{"amount":9.1}}' - response: - status: - http_version: '1.1' - code: '422' - message: 'Unprocessable Entity' - headers: - Server: Cowboy - Connection: keep-alive - Strict-Transport-Security: max-age=2592000 - Content-Type: 'application/json; charset=utf-8' - X-Ratelimit-Limit: '500' - X-Ratelimit-Remaining: '492' - Cache-Control: no-cache - X-Request-Id: e2a7ab81-df6c-4cc9-9e37-1ff93ca238d7 - X-Runtime: '0.084480' - Date: 'Tue, 03 Mar 2015 01:44:56 GMT' - X-Rack-Cache: 'invalidate, pass' - Vary: Accept-Encoding - Transfer-Encoding: chunked - Via: '1.1 vegur' - body: '{"errors":{"expire_at":["não pode ficar em branco","não é uma data válida"],"customer_person_name":["não pode ficar em branco"],"customer_cnpj_cpf":["não pode ficar em branco"],"description":["não pode ficar em branco"],"customer_zipcode":["não pode ficar em branco"]}}' diff --git a/tests/fixtures/bank_billets/create/invalid_root b/tests/fixtures/bank_billets/create/invalid_root deleted file mode 100644 index 84bcf0a..0000000 --- a/tests/fixtures/bank_billets/create/invalid_root +++ /dev/null @@ -1,35 +0,0 @@ - -- - request: - method: POST - url: 'https://sandbox.boletosimples.com.br/api/v1/bank_billets' - headers: - Host: sandbox.boletosimples.com.br - Expect: null - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.5 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - body: '{"bank_billet":[]}' - response: - status: - http_version: '1.1' - code: '422' - message: 'Unprocessable Entity' - headers: - Server: Cowboy - Connection: keep-alive - Strict-Transport-Security: max-age=2592000 - Content-Type: 'application/json; charset=utf-8' - X-Ratelimit-Limit: '500' - X-Ratelimit-Remaining: '493' - Cache-Control: no-cache - X-Request-Id: b9d0b113-fd2e-4a8e-a6f3-8edb09796069 - X-Runtime: '0.027429' - Date: 'Tue, 03 Mar 2015 01:44:06 GMT' - X-Rack-Cache: 'invalidate, pass' - Vary: Accept-Encoding - Transfer-Encoding: chunked - Via: '1.1 vegur' - body: '{"errors":{"bank_billet":["não pode ficar em branco"]}}' diff --git a/tests/fixtures/bank_billets/create/success b/tests/fixtures/bank_billets/create/success deleted file mode 100644 index 61ddbe8..0000000 --- a/tests/fixtures/bank_billets/create/success +++ /dev/null @@ -1,37 +0,0 @@ - -- - request: - method: POST - url: 'https://sandbox.boletosimples.com.br/api/v1/bank_billets' - headers: - Host: sandbox.boletosimples.com.br - Expect: null - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.5 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - body: '{"bank_billet":{"amount":"9,01","description":"Despesas do contrato 0012","expire_at":"2014-01-01","customer_address":"Rua quinhentos","customer_address_complement":"Sala 4","customer_address_number":"111","customer_city_name":"Rio de Janeiro","customer_cnpj_cpf":"012.345.678-90","customer_email":"cliente@example.com","customer_neighborhood":"Sao Francisco","customer_person_name":"Joao da Silva","customer_person_type":"individual","customer_phone_number":"2112123434","customer_state":"RJ","customer_zipcode":"12312-123","notification_url":"http:\/\/example.com.br\/notify"}}' - response: - status: - http_version: '1.1' - code: '201' - message: Created - headers: - Server: Cowboy - Connection: keep-alive - Strict-Transport-Security: max-age=2592000 - Location: 'https://sandbox.boletosimples.com.br/api/v1/bank_billets/798' - Content-Type: 'application/json; charset=utf-8' - X-Ratelimit-Limit: '500' - X-Ratelimit-Remaining: '479' - Etag: '"4816ee6b4ef3c82a203bcee9fd8568c5"' - Cache-Control: 'max-age=0, private, must-revalidate' - X-Request-Id: b99f0fa2-f402-4243-a237-d67bda75ecc5 - X-Runtime: '0.146021' - Date: 'Mon, 02 Mar 2015 23:41:28 GMT' - X-Rack-Cache: 'invalidate, pass' - Vary: Accept-Encoding - Transfer-Encoding: chunked - Via: '1.1 vegur' - body: '{"id":798,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas do contrato 0012","status":"generating","shorten_url":null,"customer_person_type":"individual","customer_person_name":"Joao da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","notification_url":"http://example.com.br/notify","send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio de Janeiro","paid_amount":0.0,"amount":9.01}' diff --git a/tests/fixtures/bank_billets/find/failure b/tests/fixtures/bank_billets/find/failure deleted file mode 100644 index d8c5214..0000000 --- a/tests/fixtures/bank_billets/find/failure +++ /dev/null @@ -1,33 +0,0 @@ - -- - request: - method: GET - url: 'https://sandbox.boletosimples.com.br/api/v1/bank_billets/1' - headers: - Host: sandbox.boletosimples.com.br - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.5 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - response: - status: - http_version: '1.1' - code: '404' - message: 'Not Found' - headers: - Server: Cowboy - Connection: keep-alive - Strict-Transport-Security: max-age=2592000 - Content-Type: 'application/json; charset=utf-8' - X-Ratelimit-Limit: '500' - X-Ratelimit-Remaining: '497' - Cache-Control: 'no-cache, private' - X-Request-Id: eb6304b1-ba3a-4428-8c42-a71e8a03d5dd - X-Runtime: '0.102487' - Date: 'Tue, 03 Mar 2015 02:33:56 GMT' - X-Rack-Cache: miss - Vary: Accept-Encoding - Transfer-Encoding: chunked - Via: '1.1 vegur' - body: '{"status":404,"error":"Not Found"}' diff --git a/tests/fixtures/bank_billets/find/success b/tests/fixtures/bank_billets/find/success deleted file mode 100644 index dc6f38b..0000000 --- a/tests/fixtures/bank_billets/find/success +++ /dev/null @@ -1,34 +0,0 @@ - -- - request: - method: GET - url: 'https://sandbox.boletosimples.com.br/api/v1/bank_billets/798' - headers: - Host: sandbox.boletosimples.com.br - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.5 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: Cowboy - Connection: keep-alive - Strict-Transport-Security: max-age=2592000 - Content-Type: 'application/json; charset=utf-8' - X-Ratelimit-Limit: '500' - X-Ratelimit-Remaining: '498' - Etag: '"5372ed12c047e3ddea49267e3bb2552c"' - Cache-Control: 'must-revalidate, private, max-age=0' - X-Request-Id: 798bfc15-d2cc-4fe2-86bf-6a97e6387c0f - X-Runtime: '0.049218' - Date: 'Tue, 03 Mar 2015 02:19:26 GMT' - X-Rack-Cache: miss - Vary: Accept-Encoding - Transfer-Encoding: chunked - Via: '1.1 vegur' - body: '{"id":798,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas do contrato 0012","status":"opened","shorten_url":"http://staging.bole.to/niq6avd3","customer_person_type":"individual","customer_person_name":"Joao da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","notification_url":"http://example.com.br/notify","send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio de Janeiro","paid_amount":0.0,"amount":9.01}' diff --git a/tests/fixtures/bank_billets/find/unauthenticated b/tests/fixtures/bank_billets/find/unauthenticated deleted file mode 100644 index 4efee08..0000000 --- a/tests/fixtures/bank_billets/find/unauthenticated +++ /dev/null @@ -1,32 +0,0 @@ - -- - request: - method: GET - url: 'https://sandbox.boletosimples.com.br/api/v1/bank_billets/1' - headers: - Host: sandbox.boletosimples.com.br - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.5 (contato@boletosimples.com.br)' - Authorization: 'Bearer invalid' - Accept: null - response: - status: - http_version: '1.1' - code: '401' - message: Unauthorized - headers: - Server: Cowboy - Connection: keep-alive - Strict-Transport-Security: max-age=2592000 - Www-Authenticate: 'Basic realm="Boleto Simples"' - Content-Type: 'application/json; charset=utf-8' - Cache-Control: 'no-cache, private' - X-Request-Id: 5b04d459-442d-4ec4-8643-685610200404 - X-Runtime: '0.010425' - Date: 'Sun, 08 Mar 2015 02:09:34 GMT' - X-Rack-Cache: miss - Vary: Accept-Encoding - Transfer-Encoding: chunked - Via: '1.1 vegur' - body: '{"error":"Você precisa se logar ou registrar antes de prosseguir."}' diff --git a/tests/fixtures/bank_billets/save/failure b/tests/fixtures/bank_billets/save/failure deleted file mode 100644 index 21f3d60..0000000 --- a/tests/fixtures/bank_billets/save/failure +++ /dev/null @@ -1,35 +0,0 @@ - -- - request: - method: POST - url: 'https://sandbox.boletosimples.com.br/api/v1/bank_billets' - headers: - Host: sandbox.boletosimples.com.br - Expect: null - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.5 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - body: '{"bank_billet":{"amount":"199,99","expire_at":"2020-01-01","description":"Cobran\u00e7a XPTO"}}' - response: - status: - http_version: '1.1' - code: '422' - message: 'Unprocessable Entity' - headers: - Server: Cowboy - Connection: keep-alive - Strict-Transport-Security: max-age=2592000 - Content-Type: 'application/json; charset=utf-8' - X-Ratelimit-Limit: '500' - X-Ratelimit-Remaining: '495' - Cache-Control: no-cache - X-Request-Id: 31701f7c-c265-4941-9a79-2636c48e6b4d - X-Runtime: '0.078203' - Date: 'Tue, 03 Mar 2015 01:26:00 GMT' - X-Rack-Cache: 'invalidate, pass' - Vary: Accept-Encoding - Transfer-Encoding: chunked - Via: '1.1 vegur' - body: '{"errors":{"customer_person_name":["não pode ficar em branco"],"customer_cnpj_cpf":["não pode ficar em branco"],"customer_zipcode":["não pode ficar em branco"],"expire_at":["deve ser em ou até 02/02/2015"],"amount":["deve ser menor ou igual a 10"]}}' diff --git a/tests/fixtures/bank_billets/save/success b/tests/fixtures/bank_billets/save/success deleted file mode 100644 index c39842f..0000000 --- a/tests/fixtures/bank_billets/save/success +++ /dev/null @@ -1,37 +0,0 @@ - -- - request: - method: POST - url: 'https://sandbox.boletosimples.com.br/api/v1/bank_billets' - headers: - Host: sandbox.boletosimples.com.br - Expect: null - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.5 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - body: '{"bank_billet":{"amount":"9,99","expire_at":"2015-01-01","customer_cnpj_cpf":"012.345.678-90","customer_person_name":"Joao da Silva","customer_zipcode":"12312-123","description":"Cobran\u00e7a XPTO"}}' - response: - status: - http_version: '1.1' - code: '201' - message: Created - headers: - Server: Cowboy - Connection: keep-alive - Strict-Transport-Security: max-age=2592000 - Location: 'https://sandbox.boletosimples.com.br/api/v1/bank_billets/799' - Content-Type: 'application/json; charset=utf-8' - X-Ratelimit-Limit: '500' - X-Ratelimit-Remaining: '494' - Etag: '"49a2cc9a55b064fdf3b6457c1623ef61"' - Cache-Control: 'max-age=0, private, must-revalidate' - X-Request-Id: 4d406f2a-b5aa-4b4f-9302-986a030efa2f - X-Runtime: '0.795783' - Date: 'Tue, 03 Mar 2015 01:26:02 GMT' - X-Rack-Cache: 'invalidate, pass' - Vary: Accept-Encoding - Transfer-Encoding: chunked - Via: '1.1 vegur' - body: '{"id":799,"expire_at":"2015-01-01","paid_at":null,"description":"Cobrança XPTO","status":"generating","shorten_url":null,"customer_person_type":"individual","customer_person_name":"Joao da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio de Janeiro","paid_amount":0.0,"amount":9.99}' diff --git a/tests/fixtures/customers/all/success b/tests/fixtures/customers/all/success deleted file mode 100644 index 7a10240..0000000 --- a/tests/fixtures/customers/all/success +++ /dev/null @@ -1,44 +0,0 @@ - -- - request: - method: GET - url: 'https://sandbox.boletosimples.com.br/api/v1/customers?page=1&per_page=2' - headers: - Host: sandbox.boletosimples.com.br - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.8 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Connection: keep-alive - Content-Type: 'application/json; charset=utf-8' - Transfer-Encoding: chunked - Status: '200 OK' - Cache-Control: 'must-revalidate, private, max-age=0' - X-Ratelimit-Limit: '500' - Date: 'Mon, 26 Dec 2016 19:51:58 GMT' - Strict-Transport-Security: max-age=631138519 - X-Ratelimit-Remaining: '485' - Vary: 'Origin,Accept-Encoding' - X-Permitted-Cross-Domain-Policies: none - X-Xss-Protection: '1; mode=block' - X-Request-Id: 5ddee053-c709-4e7c-bb14-c37dc600960d - Link: '; rel="last", ; rel="next"' - Content-Security-Policy-Report-Only: 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io; style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly' - Total: '10' - X-Download-Options: noopen - Etag: 'W/"b2f2c04217fcf6b1b224c3a7d7e8b078"' - X-Runtime: '0.070380' - X-Frame-Options: sameorigin - X-Content-Type-Options: nosniff - X-Rack-Cache: miss - X-Powered-By: 'Phusion Passenger 5.1.0' - Server: 'nginx/1.10.2 + Phusion Passenger 5.1.0' - Via: '1.1 vegur' - body: '[{"id":57,"city_name":"Rio de Janeiro","person_name":"Joao da Silva","address":"Rua quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"012.345.678-90","email":"cliente@bom.com","neighborhood":"Sao Francisco","person_type":"individual","phone_number":"2112123434","zipcode":"12312-123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null},{"id":63,"city_name":"Rio de Janeiro","person_name":"Joao da Silva","address":"Rua quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"321.315.217-07","email":"cliente@bom.com","neighborhood":"bairro","person_type":"individual","phone_number":"2112123434","zipcode":"12312-123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null}]' diff --git a/tests/fixtures/customers/create/invalid_params b/tests/fixtures/customers/create/invalid_params deleted file mode 100644 index 87b3a3d..0000000 --- a/tests/fixtures/customers/create/invalid_params +++ /dev/null @@ -1,43 +0,0 @@ - -- - request: - method: POST - url: 'https://sandbox.boletosimples.com.br/api/v1/customers' - headers: - Host: sandbox.boletosimples.com.br - Expect: null - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.8 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - body: '{"customer":{"person_name":""}}' - response: - status: - http_version: '1.1' - code: '422' - message: 'Unprocessable Entity' - headers: - Connection: keep-alive - Content-Type: 'application/json; charset=utf-8' - Transfer-Encoding: chunked - Status: '422 Unprocessable Entity' - Cache-Control: no-cache - X-Ratelimit-Limit: '500' - Date: 'Mon, 26 Dec 2016 19:51:54 GMT' - Strict-Transport-Security: max-age=631138519 - X-Ratelimit-Remaining: '490' - Vary: 'Origin,Accept-Encoding' - X-Permitted-Cross-Domain-Policies: none - X-Xss-Protection: '1; mode=block' - X-Request-Id: 5b1a1821-1c30-4ad7-8816-bd15089bd228 - Content-Security-Policy-Report-Only: 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io; style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly' - X-Download-Options: noopen - X-Runtime: '0.086353' - X-Frame-Options: sameorigin - X-Content-Type-Options: nosniff - X-Rack-Cache: 'invalidate, pass' - X-Powered-By: 'Phusion Passenger 5.1.0' - Server: 'nginx/1.10.2 + Phusion Passenger 5.1.0' - Via: '1.1 vegur' - body: '{"errors":{"person_name":["não pode ficar em branco"],"cnpj_cpf":["não pode ficar em branco"],"zipcode":["não pode ficar em branco"],"state":["não pode ficar em branco"],"address":["não pode ficar em branco"],"neighborhood":["não pode ficar em branco"],"city_id":["não pode ficar em branco"]}}' diff --git a/tests/fixtures/customers/create/invalid_root b/tests/fixtures/customers/create/invalid_root deleted file mode 100644 index 799d85b..0000000 --- a/tests/fixtures/customers/create/invalid_root +++ /dev/null @@ -1,43 +0,0 @@ - -- - request: - method: POST - url: 'https://sandbox.boletosimples.com.br/api/v1/customers' - headers: - Host: sandbox.boletosimples.com.br - Expect: null - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.8 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - body: '{"customer":[]}' - response: - status: - http_version: '1.1' - code: '422' - message: 'Unprocessable Entity' - headers: - Connection: keep-alive - Content-Type: 'application/json; charset=utf-8' - Transfer-Encoding: chunked - Status: '422 Unprocessable Entity' - Cache-Control: no-cache - X-Ratelimit-Limit: '500' - Date: 'Mon, 26 Dec 2016 19:51:53 GMT' - Strict-Transport-Security: max-age=631138519 - X-Ratelimit-Remaining: '491' - Vary: 'Origin,Accept-Encoding' - X-Permitted-Cross-Domain-Policies: none - X-Xss-Protection: '1; mode=block' - X-Request-Id: db7879a4-1c9f-4baa-ab03-cce0dfff4f54 - Content-Security-Policy-Report-Only: 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io; style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly' - X-Download-Options: noopen - X-Runtime: '0.091695' - X-Frame-Options: sameorigin - X-Content-Type-Options: nosniff - X-Rack-Cache: 'invalidate, pass' - X-Powered-By: 'Phusion Passenger 5.1.0' - Server: 'nginx/1.10.2 + Phusion Passenger 5.1.0' - Via: '1.1 vegur' - body: '{"errors":{"customer":["não pode ficar em branco"]}}' diff --git a/tests/fixtures/customers/create/success b/tests/fixtures/customers/create/success deleted file mode 100644 index d472a1c..0000000 --- a/tests/fixtures/customers/create/success +++ /dev/null @@ -1,45 +0,0 @@ - -- - request: - method: POST - url: 'https://sandbox.boletosimples.com.br/api/v1/customers' - headers: - Host: sandbox.boletosimples.com.br - Expect: null - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.8 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - body: '{"customer":{"person_name":"Joao da Silva","cnpj_cpf":"732.327.384-60","email":"cliente@example.com","address":"Rua quinhentos","city_name":"Rio de Janeiro","state":"RJ","neighborhood":"bairro","zipcode":"12312-123","address_number":"111","address_complement":"Sala 4","phone_number":"2112123434"}}' - response: - status: - http_version: '1.1' - code: '201' - message: Created - headers: - Connection: keep-alive - Content-Type: 'application/json; charset=utf-8' - Transfer-Encoding: chunked - Status: '201 Created' - Cache-Control: 'max-age=0, private, must-revalidate' - X-Ratelimit-Limit: '500' - Date: 'Mon, 26 Dec 2016 19:55:44 GMT' - Strict-Transport-Security: max-age=631138519 - X-Ratelimit-Remaining: '484' - Vary: 'Origin,Accept-Encoding' - X-Permitted-Cross-Domain-Policies: none - X-Xss-Protection: '1; mode=block' - X-Request-Id: 52b69d89-1073-4985-b4e7-65de2775b63b - Content-Security-Policy-Report-Only: 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io; style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly' - Location: 'https://sandbox.boletosimples.com.br/api/v1/customers/1411' - X-Download-Options: noopen - Etag: 'W/"449ac767cbb062196488cac5a3b396fd"' - X-Runtime: '0.054117' - X-Frame-Options: sameorigin - X-Content-Type-Options: nosniff - X-Rack-Cache: 'invalidate, pass' - X-Powered-By: 'Phusion Passenger 5.1.0' - Server: 'nginx/1.10.2 + Phusion Passenger 5.1.0' - Via: '1.1 vegur' - body: '{"id":1411,"city_name":"Rio de Janeiro","person_name":"Joao da Silva","address":"Rua quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"732.327.384-60","email":"cliente@example.com","neighborhood":"bairro","person_type":"individual","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null}' diff --git a/tests/fixtures/customers/find/failure b/tests/fixtures/customers/find/failure deleted file mode 100644 index ac9bdbe..0000000 --- a/tests/fixtures/customers/find/failure +++ /dev/null @@ -1,41 +0,0 @@ - -- - request: - method: GET - url: 'https://sandbox.boletosimples.com.br/api/v1/customers/1' - headers: - Host: sandbox.boletosimples.com.br - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.8 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - response: - status: - http_version: '1.1' - code: '404' - message: 'Not Found' - headers: - Connection: keep-alive - Content-Type: 'application/json; charset=utf-8' - Transfer-Encoding: chunked - Status: '404 Not Found' - Cache-Control: 'no-cache, private' - X-Ratelimit-Limit: '500' - Date: 'Mon, 26 Dec 2016 19:51:57 GMT' - Strict-Transport-Security: max-age=631138519 - X-Ratelimit-Remaining: '486' - Vary: 'Origin,Accept-Encoding' - X-Permitted-Cross-Domain-Policies: none - X-Xss-Protection: '1; mode=block' - X-Request-Id: 78dabe3b-6bee-4c03-8902-56c991db1ff9 - Content-Security-Policy-Report-Only: 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io; style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly' - X-Download-Options: noopen - X-Runtime: '0.062984' - X-Frame-Options: sameorigin - X-Content-Type-Options: nosniff - X-Rack-Cache: miss - X-Powered-By: 'Phusion Passenger 5.1.0' - Server: 'nginx/1.10.2 + Phusion Passenger 5.1.0' - Via: '1.1 vegur' - body: '{"status":404,"error":"Not Found"}' diff --git a/tests/fixtures/customers/find/success b/tests/fixtures/customers/find/success deleted file mode 100644 index c40e689..0000000 --- a/tests/fixtures/customers/find/success +++ /dev/null @@ -1,43 +0,0 @@ - -- - request: - method: GET - url: 'https://sandbox.boletosimples.com.br/api/v1/customers/1411' - headers: - Host: sandbox.boletosimples.com.br - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.8 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Connection: keep-alive - Content-Type: 'application/json; charset=utf-8' - Transfer-Encoding: chunked - Status: '200 OK' - Cache-Control: 'must-revalidate, private, max-age=0' - X-Ratelimit-Limit: '500' - Date: 'Mon, 26 Dec 2016 19:55:44 GMT' - Strict-Transport-Security: max-age=631138519 - X-Ratelimit-Remaining: '483' - Vary: 'Origin,Accept-Encoding' - X-Permitted-Cross-Domain-Policies: none - X-Xss-Protection: '1; mode=block' - X-Request-Id: d82e376d-621e-47e8-9a95-4e42aaa6691b - Content-Security-Policy-Report-Only: 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io; style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly' - Location: 'https://sandbox.boletosimples.com.br/api/v1/customers/1411' - X-Download-Options: noopen - Etag: 'W/"449ac767cbb062196488cac5a3b396fd"' - X-Runtime: '0.030553' - X-Frame-Options: sameorigin - X-Content-Type-Options: nosniff - X-Rack-Cache: miss - X-Powered-By: 'Phusion Passenger 5.1.0' - Server: 'nginx/1.10.2 + Phusion Passenger 5.1.0' - Via: '1.1 vegur' - body: '{"id":1411,"city_name":"Rio de Janeiro","person_name":"Joao da Silva","address":"Rua quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"732.327.384-60","email":"cliente@example.com","neighborhood":"bairro","person_type":"individual","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null}' diff --git a/tests/fixtures/customers/find/unauthenticated b/tests/fixtures/customers/find/unauthenticated deleted file mode 100644 index d43882b..0000000 --- a/tests/fixtures/customers/find/unauthenticated +++ /dev/null @@ -1,40 +0,0 @@ - -- - request: - method: GET - url: 'https://sandbox.boletosimples.com.br/api/v1/customers/1' - headers: - Host: sandbox.boletosimples.com.br - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.8 (contato@boletosimples.com.br)' - Authorization: 'Bearer invalid' - Accept: null - response: - status: - http_version: '1.1' - code: '401' - message: Unauthorized - headers: - Connection: keep-alive - Content-Type: 'application/json; charset=utf-8' - Transfer-Encoding: chunked - Status: '401 Unauthorized' - Cache-Control: 'no-cache, private' - Date: 'Mon, 26 Dec 2016 19:51:57 GMT' - Vary: 'Origin,Accept-Encoding' - Strict-Transport-Security: max-age=631138519 - X-Permitted-Cross-Domain-Policies: none - X-Xss-Protection: '1; mode=block' - Www-Authenticate: 'Basic realm="Boleto Simples"' - X-Request-Id: 4e576a23-970f-4946-ab7c-754bb5c5be50 - Content-Security-Policy-Report-Only: 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io; style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly' - X-Download-Options: noopen - X-Runtime: '0.026889' - X-Frame-Options: sameorigin - X-Content-Type-Options: nosniff - X-Rack-Cache: miss - X-Powered-By: 'Phusion Passenger 5.1.0' - Server: 'nginx/1.10.2 + Phusion Passenger 5.1.0' - Via: '1.1 vegur' - body: '{"error":"Você precisa se logar ou registrar antes de prosseguir."}' diff --git a/tests/fixtures/customers/save/failure b/tests/fixtures/customers/save/failure deleted file mode 100644 index 6979bb6..0000000 --- a/tests/fixtures/customers/save/failure +++ /dev/null @@ -1,43 +0,0 @@ - -- - request: - method: POST - url: 'https://sandbox.boletosimples.com.br/api/v1/customers' - headers: - Host: sandbox.boletosimples.com.br - Expect: null - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.8 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - body: '{"customer":{"person_name":"Joao da Silva","cnpj_cpf":"321.315.217-07"}}' - response: - status: - http_version: '1.1' - code: '422' - message: 'Unprocessable Entity' - headers: - Connection: keep-alive - Content-Type: 'application/json; charset=utf-8' - Transfer-Encoding: chunked - Status: '422 Unprocessable Entity' - Cache-Control: no-cache - X-Ratelimit-Limit: '500' - Date: 'Mon, 26 Dec 2016 19:51:55 GMT' - Strict-Transport-Security: max-age=631138519 - X-Ratelimit-Remaining: '488' - Vary: 'Origin,Accept-Encoding' - X-Permitted-Cross-Domain-Policies: none - X-Xss-Protection: '1; mode=block' - X-Request-Id: 9dffafb7-f0e7-41d2-a944-3399b0be6ee7 - Content-Security-Policy-Report-Only: 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io; style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly' - X-Download-Options: noopen - X-Runtime: '0.054816' - X-Frame-Options: sameorigin - X-Content-Type-Options: nosniff - X-Rack-Cache: 'invalidate, pass' - X-Powered-By: 'Phusion Passenger 5.1.0' - Server: 'nginx/1.10.2 + Phusion Passenger 5.1.0' - Via: '1.1 vegur' - body: '{"errors":{"zipcode":["não pode ficar em branco"],"state":["não pode ficar em branco"],"address":["não pode ficar em branco"],"neighborhood":["não pode ficar em branco"],"city_id":["não pode ficar em branco"],"cnpj_cpf":["já está em uso"]}}' diff --git a/tests/fixtures/customers/save/success b/tests/fixtures/customers/save/success deleted file mode 100644 index cbe6e1d..0000000 --- a/tests/fixtures/customers/save/success +++ /dev/null @@ -1,45 +0,0 @@ - -- - request: - method: POST - url: 'https://sandbox.boletosimples.com.br/api/v1/customers' - headers: - Host: sandbox.boletosimples.com.br - Expect: null - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.8 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - body: '{"customer":{"cnpj_cpf":"036.045.511-53","person_name":"Joao da Silva","zipcode":"12312-123","email":"cliente@example.com","address":"Rua quinhentos","city_name":"Rio de Janeiro","state":"RJ","neighborhood":"bairro","address_number":"222","address_complement":"sala 5","phone_number":"2112123434"}}' - response: - status: - http_version: '1.1' - code: '201' - message: Created - headers: - Connection: keep-alive - Content-Type: 'application/json; charset=utf-8' - Transfer-Encoding: chunked - Status: '201 Created' - Cache-Control: 'max-age=0, private, must-revalidate' - X-Ratelimit-Limit: '500' - Date: 'Mon, 26 Dec 2016 20:02:06 GMT' - Strict-Transport-Security: max-age=631138519 - X-Ratelimit-Remaining: '499' - Vary: 'Origin,Accept-Encoding' - X-Permitted-Cross-Domain-Policies: none - X-Xss-Protection: '1; mode=block' - X-Request-Id: e96dc7d3-b39a-4ffa-80b9-cf2d604c8dcc - Content-Security-Policy-Report-Only: 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io; style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly' - Location: 'https://sandbox.boletosimples.com.br/api/v1/customers/1412' - X-Download-Options: noopen - Etag: 'W/"cd42c5b43209adc1ddd280d452d8c320"' - X-Runtime: '0.119932' - X-Frame-Options: sameorigin - X-Content-Type-Options: nosniff - X-Rack-Cache: 'invalidate, pass' - X-Powered-By: 'Phusion Passenger 5.1.0' - Server: 'nginx/1.10.2 + Phusion Passenger 5.1.0' - Via: '1.1 vegur' - body: '{"id":1412,"city_name":"Rio de Janeiro","person_name":"Joao da Silva","address":"Rua quinhentos","address_complement":"sala 5","address_number":"222","mobile_number":null,"cnpj_cpf":"036.045.511-53","email":"cliente@example.com","neighborhood":"bairro","person_type":"individual","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null}' diff --git a/tests/fixtures/customers/update/success b/tests/fixtures/customers/update/success deleted file mode 100644 index ef76c77..0000000 --- a/tests/fixtures/customers/update/success +++ /dev/null @@ -1,82 +0,0 @@ - -- - request: - method: GET - url: 'https://sandbox.boletosimples.com.br/api/v1/customers/1411' - headers: - Host: sandbox.boletosimples.com.br - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.8 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Connection: keep-alive - Content-Type: 'application/json; charset=utf-8' - Transfer-Encoding: chunked - Status: '200 OK' - Cache-Control: 'must-revalidate, private, max-age=0' - X-Ratelimit-Limit: '500' - Date: 'Mon, 26 Dec 2016 20:14:23 GMT' - Strict-Transport-Security: max-age=631138519 - X-Ratelimit-Remaining: '492' - Vary: 'Origin,Accept-Encoding' - X-Permitted-Cross-Domain-Policies: none - X-Xss-Protection: '1; mode=block' - X-Request-Id: b03bf260-5eaa-42e7-b0c4-2cace3648f4c - Content-Security-Policy-Report-Only: 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io; style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly' - Location: 'https://sandbox.boletosimples.com.br/api/v1/customers/1411' - X-Download-Options: noopen - Etag: 'W/"449ac767cbb062196488cac5a3b396fd"' - X-Runtime: '0.035910' - X-Frame-Options: sameorigin - X-Content-Type-Options: nosniff - X-Rack-Cache: miss - X-Powered-By: 'Phusion Passenger 5.1.0' - Server: 'nginx/1.10.2 + Phusion Passenger 5.1.0' - Via: '1.1 vegur' - body: '{"id":1411,"city_name":"Rio de Janeiro","person_name":"Joao da Silva","address":"Rua quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"732.327.384-60","email":"cliente@example.com","neighborhood":"bairro","person_type":"individual","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null}' -- - request: - method: POST - url: 'https://sandbox.boletosimples.com.br/api/v1/customers/1411' - headers: - Host: sandbox.boletosimples.com.br - Expect: null - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.8 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - body: '{"customer":{"id":1411,"city_name":"Rio de Janeiro","person_name":"Joao da Costa","address":"Rua quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"732.327.384-60","email":"cliente@example.com","neighborhood":"bairro","person_type":"individual","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null}}' - response: - status: - http_version: '1.1' - code: '404' - message: 'Not Found' - headers: - Connection: keep-alive - Content-Type: 'text/html; charset=utf-8' - Content-Length: '2522' - Status: '404 Not Found' - Date: 'Mon, 26 Dec 2016 20:14:23 GMT' - Vary: 'Origin,Accept-Encoding' - Strict-Transport-Security: max-age=631138519 - X-Permitted-Cross-Domain-Policies: none - X-Xss-Protection: '1; mode=block' - X-Request-Id: 01d698ac-5980-460e-b886-eefef75347da - Content-Security-Policy-Report-Only: 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io; style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly' - X-Download-Options: noopen - X-Runtime: '0.009059' - X-Frame-Options: sameorigin - X-Content-Type-Options: nosniff - X-Rack-Cache: 'invalidate, pass' - X-Powered-By: 'Phusion Passenger 5.1.0' - Server: 'nginx/1.10.2 + Phusion Passenger 5.1.0' - Via: '1.1 vegur' - body: "\n\n\n \n \n \n Boleto Simples: Página não encontrada\n\n\n
\n\n
\n\n

\n \"Boleto\n

\n\n\n

WOW! Página Não Encontrada (Erro 404) :-(

\n\n

A página requisitada não existe.

\n\n

Você pode ter usado um endereço antigo, ou ter digitado incorretamente na Barra de Endereço do seu\n programa.

\n\n

Por favor, verifique o endereço digitado ou tente nosso site

\n\n

Caso você esteja certo do endereço e este erro insista em aparecer, fique à vontade para nos avisar pelo suporte.

\n\n

Desejando a sua compreensão,
\n Equipe do Boleto Simples

\n\n
\n\n
\n\n

Copyright© Boleto Simples.

\n\n
\n\n
\n\n\n\n" diff --git a/tests/fixtures/extra/userinfo b/tests/fixtures/extra/userinfo deleted file mode 100644 index e9e3562..0000000 --- a/tests/fixtures/extra/userinfo +++ /dev/null @@ -1,42 +0,0 @@ - -- - request: - method: GET - url: 'https://sandbox.boletosimples.com.br/api/v1/userinfo' - headers: - Host: sandbox.boletosimples.com.br - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.8 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Connection: keep-alive - Content-Type: 'application/json; charset=utf-8' - Transfer-Encoding: chunked - Status: '200 OK' - Cache-Control: 'must-revalidate, private, max-age=0' - X-Ratelimit-Limit: '500' - Date: 'Mon, 26 Dec 2016 19:45:39 GMT' - Strict-Transport-Security: max-age=631138519 - X-Ratelimit-Remaining: '499' - Vary: 'Origin,Accept-Encoding' - X-Permitted-Cross-Domain-Policies: none - X-Xss-Protection: '1; mode=block' - X-Request-Id: 077acf57-30f9-467a-be4c-fb087d0daa63 - Content-Security-Policy-Report-Only: 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io; style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly' - X-Download-Options: noopen - Etag: 'W/"a0f1027019539a6a2641f65ac4c1b271"' - X-Runtime: '0.086003' - X-Frame-Options: sameorigin - X-Content-Type-Options: nosniff - X-Rack-Cache: miss - X-Powered-By: 'Phusion Passenger 5.1.0' - Server: 'nginx/1.10.2 + Phusion Passenger 5.1.0' - Via: '1.1 vegur' - body: '{"id":53,"login_url":"https://sandbox.boletosimples.com.br/welcome?email=user1%40example.com\u0026token=Dx6tDtrP_v9_CcDjMRmr","email":"user1@example.com","account_type":null,"first_name":null,"middle_name":null,"last_name":null,"full_name":null,"cpf":null,"date_of_birth":null,"mother_name":null,"father_name":null,"account_level":1,"phone_number":null,"address_street_name":null,"address_number":null,"address_complement":null,"address_neighborhood":null,"address_postal_code":null,"address_city_name":null,"address_state":null,"business_name":null,"business_cnpj":null,"business_legal_name":null,"balance_cents":1203}' diff --git a/tests/fixtures/transactions/all b/tests/fixtures/transactions/all deleted file mode 100644 index ab4110a..0000000 --- a/tests/fixtures/transactions/all +++ /dev/null @@ -1,35 +0,0 @@ - -- - request: - method: GET - url: 'https://sandbox.boletosimples.com.br/api/v1/transactions' - headers: - Host: sandbox.boletosimples.com.br - Accept-Encoding: null - Content-Type: application/json - User-Agent: 'BoletoSimples PHP Client v0.0.5 (contato@boletosimples.com.br)' - Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN' - Accept: null - response: - status: - http_version: '1.1' - code: '200' - message: OK - headers: - Server: Cowboy - Connection: keep-alive - Strict-Transport-Security: max-age=2592000 - Total: '2' - Content-Type: 'application/json; charset=utf-8' - X-Ratelimit-Limit: '500' - X-Ratelimit-Remaining: '499' - Etag: 'W/"2e1210e97d24b7cdbb9fc07792ae2aed"' - Cache-Control: 'must-revalidate, private, max-age=0' - X-Request-Id: 874882c5-f560-4fd7-8adf-1a14cdba589d - X-Runtime: '0.050251' - Date: 'Sun, 08 Mar 2015 03:09:18 GMT' - X-Rack-Cache: miss - Vary: Accept-Encoding - Transfer-Encoding: chunked - Via: '1.1 vegur' - body: '[{"id":59,"amount":9.01,"created_at":"2015-02-10","description":"Boleto Bancário 688","kind":"credit","processed_at":"2015-02-19","sent_at":null,"status":"processed","credit_at":"2015-02-19"},{"id":60,"amount":-5.0,"created_at":"2015-02-10","description":"Boleto Bancário 688","kind":"fee","processed_at":"2015-02-19","sent_at":null,"status":"processed","credit_at":"2015-02-19"}]' diff --git a/tests/listeners/VcrSecurityListener.php b/tests/listeners/VcrSecurityListener.old similarity index 77% rename from tests/listeners/VcrSecurityListener.php rename to tests/listeners/VcrSecurityListener.old index bf5d6c8..289dd93 100644 --- a/tests/listeners/VcrSecurityListener.php +++ b/tests/listeners/VcrSecurityListener.old @@ -1,15 +1,14 @@ getenv('BOLETOSIMPLES_APP_ID'), - 'BOLETOSIMPLES_APP_SECRET' => getenv('BOLETOSIMPLES_APP_SECRET'), - 'BOLETOSIMPLES_ACCESS_TOKEN' => getenv('BOLETOSIMPLES_ACCESS_TOKEN'), - 'BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN' => getenv('BOLETOSIMPLES_CLIENT_CREDENTIALS_TOKEN') + 'BOLETOSIMPLES_USER_AGENT' => getenv('BOLETOSIMPLES_USER_AGENT'), + 'BOLETOSIMPLES_API_TOKEN' => getenv('BOLETOSIMPLES_API_TOKEN') ]; }