diff --git a/.travis.yml b/.travis.yml index 7f848c7..f649b10 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,8 @@ language: php +dist: trusty php: - - 7.0 - - 5.6 - - 5.5 - - 5.4 + - 7.4 + - 7.3 before_script: - echo 'date.timezone = "Europe/London"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini - composer install diff --git a/README.md b/README.md index 9bc54b4..560301c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Esendex PHP Client ## Installation ### Requirements - - PHP >= 5.3.0 + - PHP >= 7.3 - ext-curl enabled The **esendex-php-sdk** is available to install through several methods as well as from source. @@ -14,7 +14,7 @@ The **esendex-php-sdk** is available to install through several methods as well ```json { "require": { - "esendex/sdk": "2.*.*" + "esendex/sdk": "3.*.*" } } ``` @@ -27,32 +27,21 @@ For installation on other platforms see [getcomposer.org](https://getcomposer.or We're in the default [`Packagist`](http://packagist.org/packages/esendex/sdk) repository so just run ```bash -$ php composer.phar require esendex/sdk:2.*.* +$ php composer.phar require esendex/sdk:3.*.* ``` or add the package above to your *composer.json* -Then just include the generated *autoload.php* somewhere in your code; +Then just include Composer's generated *autoload.php* somewhere in your code; ```php5 require_once 'path/to/vendor/autoload.php'; ``` -#### PEAR -Our package requires version 1.9.3 or newer -```bash -$ pear config-set auto_discover 1 -$ pear install esendex.github.com/pear/Esendex -``` -We provide a PSR-0 autoloader you can use for your convenience; -```php5 -require_once 'Esendex/autoload.php'; -``` - #### GZIP Download the current version [here](http://downloads.esendex.com.s3-website-eu-west-1.amazonaws.com/esendex-php-sdk/latest.sdk) Our autoloader may be included somewhere in your application; ```php5 -require_once 'path/to/downloaded/Esendex/autoload.php'; +require_once 'path/to/downloaded/sdk/src/Esendex/AutoLoad.php'; ``` ## Getting Started diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d7146b9..266aa9b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,7 +7,7 @@ trigger: - master pool: - vmImage: ubuntu-default + vmImage: ubuntu-20.04 variables: phpVersion: 7.4 @@ -23,6 +23,12 @@ steps: displayName: 'Use PHP version $(phpVersion)' - script: composer install --no-interaction --prefer-dist - displayName: 'composer install' -- script: vendor/bin/phing -verbose package - displayName: 'phing package' \ No newline at end of file + displayName: 'composer update' +- script: vendor/bin/phing -verbose package + displayName: 'phing package' + +- task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: '$(Build.SourcesDirectory)/build' + ArtifactName: 'drop' + publishLocation: 'Container' \ No newline at end of file diff --git a/build.xml b/build.xml index 6b7c7ad..4ace9ec 100644 --- a/build.xml +++ b/build.xml @@ -25,22 +25,6 @@ - - - - - - - - - - - - - - - - diff --git a/composer.json b/composer.json index 14d1923..255ae54 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,13 @@ "name": "esendex/sdk", "description": "Send SMS from your application using the Esendex API", "homepage": "http://developers.esendex.com", - "keywords": ["sms", "rest", "restful", "api", "requests"], + "keywords": [ + "sms", + "rest", + "restful", + "api", + "requests" + ], "license": "BSD-3-Clause", "authors": [ { @@ -16,16 +22,17 @@ "source": "https://github.com/esendex/esendex-php-sdk" }, "require": { - "php": ">=5.3", + "php": ">=7.3", "ext-curl": "*" }, "require-dev": { - "phpunit/phpunit": "4.3.*", - "phing/phing": "2.*" + "phpunit/phpunit": "8.5.*", + "phing/phing": "2.*", + "pear/archive_tar": "1.4.*" }, "autoload": { "psr-0": { "Esendex": "src/" } } -} +} \ No newline at end of file diff --git a/composer.lock b/composer.lock index 36f4de2..37458d2 100644 --- a/composer.lock +++ b/composer.lock @@ -1,191 +1,1178 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "hash": "26c6633bb716651ce409d31285e4f76a", + "content-hash": "2ba027215bb15b166fe1fc624ee9d27e", "packages": [], "packages-dev": [ { "name": "doctrine/instantiator", - "version": "1.0.5", + "version": "1.4.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b", + "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b", "shasum": "" }, "require": { - "php": ">=5.3,<8.0-DEV" + "php": "^7.1 || ^8.0" }, "require-dev": { - "athletic/athletic": "~0.1.8", + "doctrine/coding-standard": "^8.0", "ext-pdo": "*", "ext-phar": "*", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~2.0" + "phpbench/phpbench": "^0.13 || 1.0.0-alpha2", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-phpunit": "^0.12", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.4.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2020-11-10T18:47:58+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.10.2", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220", + "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "replace": { + "myclabs/deep-copy": "self.version" + }, + "require-dev": { + "doctrine/collections": "^1.0", + "doctrine/common": "^2.6", + "phpunit/phpunit": "^7.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + }, + "files": [ + "src/DeepCopy/deep_copy.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2020-11-13T09:40:50+00:00" + }, + { + "name": "pear/archive_tar", + "version": "1.4.13", + "source": { + "type": "git", + "url": "https://github.com/pear/Archive_Tar.git", + "reference": "2b87b41178cc6d4ad3cba678a46a1cae49786011" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pear/Archive_Tar/zipball/2b87b41178cc6d4ad3cba678a46a1cae49786011", + "reference": "2b87b41178cc6d4ad3cba678a46a1cae49786011", + "shasum": "" + }, + "require": { + "pear/pear-core-minimal": "^1.10.0alpha2", + "php": ">=5.2.0" + }, + "require-dev": { + "phpunit/phpunit": "*" + }, + "suggest": { + "ext-bz2": "Bz2 compression support.", + "ext-xz": "Lzma2 compression support.", + "ext-zlib": "Gzip compression support." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "psr-0": { + "Archive_Tar": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "include-path": [ + "./" + ], + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Vincent Blavet", + "email": "vincent@phpconcept.net" + }, + { + "name": "Greg Beaver", + "email": "greg@chiaraquartet.net" + }, + { + "name": "Michiel Rook", + "email": "mrook@php.net" + } + ], + "description": "Tar file management class with compression support (gzip, bzip2, lzma2)", + "homepage": "https://github.com/pear/Archive_Tar", + "keywords": [ + "archive", + "tar" + ], + "support": { + "issues": "http://pear.php.net/bugs/search.php?cmd=display&package_name[]=Archive_Tar", + "source": "https://github.com/pear/Archive_Tar" + }, + "funding": [ + { + "url": "https://github.com/mrook", + "type": "github" + }, + { + "url": "https://www.patreon.com/michielrook", + "type": "patreon" + } + ], + "time": "2021-02-16T10:50:50+00:00" + }, + { + "name": "pear/console_getopt", + "version": "v1.4.3", + "source": { + "type": "git", + "url": "https://github.com/pear/Console_Getopt.git", + "reference": "a41f8d3e668987609178c7c4a9fe48fecac53fa0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pear/Console_Getopt/zipball/a41f8d3e668987609178c7c4a9fe48fecac53fa0", + "reference": "a41f8d3e668987609178c7c4a9fe48fecac53fa0", + "shasum": "" + }, + "type": "library", + "autoload": { + "psr-0": { + "Console": "./" + } + }, + "notification-url": "https://packagist.org/downloads/", + "include-path": [ + "./" + ], + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Andrei Zmievski", + "email": "andrei@php.net", + "role": "Lead" + }, + { + "name": "Stig Bakken", + "email": "stig@php.net", + "role": "Developer" + }, + { + "name": "Greg Beaver", + "email": "cellog@php.net", + "role": "Helper" + } + ], + "description": "More info available on: http://pear.php.net/package/Console_Getopt", + "support": { + "issues": "http://pear.php.net/bugs/search.php?cmd=display&package_name[]=Console_Getopt", + "source": "https://github.com/pear/Console_Getopt" + }, + "time": "2019-11-20T18:27:48+00:00" + }, + { + "name": "pear/pear-core-minimal", + "version": "v1.10.10", + "source": { + "type": "git", + "url": "https://github.com/pear/pear-core-minimal.git", + "reference": "625a3c429d9b2c1546438679074cac1b089116a7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pear/pear-core-minimal/zipball/625a3c429d9b2c1546438679074cac1b089116a7", + "reference": "625a3c429d9b2c1546438679074cac1b089116a7", + "shasum": "" + }, + "require": { + "pear/console_getopt": "~1.4", + "pear/pear_exception": "~1.0" + }, + "replace": { + "rsky/pear-core-min": "self.version" + }, + "type": "library", + "autoload": { + "psr-0": { + "": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "include-path": [ + "src/" + ], + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Christian Weiske", + "email": "cweiske@php.net", + "role": "Lead" + } + ], + "description": "Minimal set of PEAR core files to be used as composer dependency", + "support": { + "issues": "http://pear.php.net/bugs/search.php?cmd=display&package_name[]=PEAR", + "source": "https://github.com/pear/pear-core-minimal" + }, + "time": "2019-11-19T19:00:24+00:00" + }, + { + "name": "pear/pear_exception", + "version": "v1.0.1", + "source": { + "type": "git", + "url": "https://github.com/pear/PEAR_Exception.git", + "reference": "dbb42a5a0e45f3adcf99babfb2a1ba77b8ac36a7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pear/PEAR_Exception/zipball/dbb42a5a0e45f3adcf99babfb2a1ba77b8ac36a7", + "reference": "dbb42a5a0e45f3adcf99babfb2a1ba77b8ac36a7", + "shasum": "" + }, + "require": { + "php": ">=4.4.0" + }, + "require-dev": { + "phpunit/phpunit": "*" + }, + "type": "class", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "PEAR/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "include-path": [ + "." + ], + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Helgi Thormar", + "email": "dufuz@php.net" + }, + { + "name": "Greg Beaver", + "email": "cellog@php.net" + } + ], + "description": "The PEAR Exception base class.", + "homepage": "https://github.com/pear/PEAR_Exception", + "keywords": [ + "exception" + ], + "support": { + "issues": "http://pear.php.net/bugs/search.php?cmd=display&package_name[]=PEAR_Exception", + "source": "https://github.com/pear/PEAR_Exception" + }, + "time": "2019-12-10T10:24:42+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133" + }, + "dist": { + "type": "zip", + "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-master": "2.0.x-dev" + } + }, + "autoload": { + "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": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/master" + }, + "time": "2020-06-27T14:33:11+00:00" + }, + { + "name": "phar-io/version", + "version": "3.0.4", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "e4782611070e50613683d2b9a57730e9a3ba5451" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/e4782611070e50613683d2b9a57730e9a3ba5451", + "reference": "e4782611070e50613683d2b9a57730e9a3ba5451", + "shasum": "" + }, + "require": { + "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" + }, + { + "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.0.4" + }, + "time": "2020-12-13T23:18:30+00:00" + }, + { + "name": "phing/phing", + "version": "2.16.4", + "source": { + "type": "git", + "url": "https://github.com/phingofficial/phing.git", + "reference": "30831b22fc6bab57003f1893842668c44b7f65ae" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phingofficial/phing/zipball/30831b22fc6bab57003f1893842668c44b7f65ae", + "reference": "30831b22fc6bab57003f1893842668c44b7f65ae", + "shasum": "" + }, + "require": { + "php": ">=5.2.0" + }, + "require-dev": { + "ext-pdo_sqlite": "*", + "mikey179/vfsstream": "^1.6", + "pdepend/pdepend": "2.x", + "pear/archive_tar": "1.4.x", + "pear/http_request2": "dev-trunk", + "pear/net_growl": "dev-trunk", + "pear/pear-core-minimal": "1.10.1", + "pear/versioncontrol_git": "@dev", + "pear/versioncontrol_svn": "~0.5", + "phpdocumentor/phpdocumentor": "2.x", + "phploc/phploc": "~2.0.6", + "phpmd/phpmd": "~2.2", + "phpunit/phpunit": ">=3.7", + "sebastian/git": "~1.0", + "sebastian/phpcpd": "2.x", + "siad007/versioncontrol_hg": "^1.0", + "simpletest/simpletest": "^1.1", + "squizlabs/php_codesniffer": "~2.2", + "symfony/yaml": "^2.8 || ^3.1 || ^4.0" + }, + "suggest": { + "pdepend/pdepend": "PHP version of JDepend", + "pear/archive_tar": "Tar file management class", + "pear/versioncontrol_git": "A library that provides OO interface to handle Git repository", + "pear/versioncontrol_svn": "A simple OO-style interface for Subversion, the free/open-source version control system", + "phpdocumentor/phpdocumentor": "Documentation Generator for PHP", + "phploc/phploc": "A tool for quickly measuring the size of a PHP project", + "phpmd/phpmd": "PHP version of PMD tool", + "phpunit/php-code-coverage": "Library that provides collection, processing, and rendering functionality for PHP code coverage information", + "phpunit/phpunit": "The PHP Unit Testing Framework", + "sebastian/phpcpd": "Copy/Paste Detector (CPD) for PHP code", + "siad007/versioncontrol_hg": "A library for interfacing with Mercurial repositories.", + "tedivm/jshrink": "Javascript Minifier built in PHP" + }, + "bin": [ + "bin/phing" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.16.x-dev" + } + }, + "autoload": { + "classmap": [ + "classes/phing/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "include-path": [ + "classes" + ], + "license": [ + "LGPL-3.0-only" + ], + "authors": [ + { + "name": "Michiel Rook", + "email": "mrook@php.net" + }, + { + "name": "Phing Community", + "homepage": "https://www.phing.info/trac/wiki/Development/Contributors" + } + ], + "description": "PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.", + "homepage": "https://www.phing.info/", + "keywords": [ + "build", + "phing", + "task", + "tool" + ], + "support": { + "irc": "irc://irc.freenode.net/phing", + "issues": "https://www.phing.info/trac/report", + "source": "https://github.com/phingofficial/phing/tree/2.16.4" + }, + "funding": [ + { + "url": "https://github.com/mrook", + "type": "github" + }, + { + "url": "https://github.com/siad007", + "type": "github" + }, + { + "url": "https://www.patreon.com/michielrook", + "type": "patreon" + } + ], + "time": "2021-01-29T14:00:54+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": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + }, + { + "name": "Jaap van Otterdijk", + "email": "account@ijaap.nl" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master" + }, + "time": "2020-09-03T19:13:55+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "1.4.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", + "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0", + "phpdocumentor/reflection-common": "^2.0" + }, + "require-dev": { + "ext-tokenizer": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", + "support": { + "issues": "https://github.com/phpDocumentor/TypeResolver/issues", + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.4.0" + }, + "time": "2020-09-17T18:55:26+00:00" + }, + { + "name": "phpspec/prophecy", + "version": "1.12.2", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "245710e971a030f42e08f4912863805570f23d39" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/245710e971a030f42e08f4912863805570f23d39", + "reference": "245710e971a030f42e08f4912863805570f23d39", + "shasum": "" + }, + "require": { + "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": "^6.0", + "phpunit/phpunit": "^8.0 || ^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.11.x-dev" + } + }, + "autoload": { + "psr-4": { + "Prophecy\\": "src/Prophecy" + } + }, + "notification-url": "https://packagist.org/downloads/", + "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" + ], + "support": { + "issues": "https://github.com/phpspec/prophecy/issues", + "source": "https://github.com/phpspec/prophecy/tree/1.12.2" + }, + "time": "2020-12-19T10:15:11+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "7.0.14", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "bb7c9a210c72e4709cdde67f8b7362f672f2225c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/bb7c9a210c72e4709cdde67f8b7362f672f2225c", + "reference": "bb7c9a210c72e4709cdde67f8b7362f672f2225c", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": ">=7.2", + "phpunit/php-file-iterator": "^2.0.2", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-token-stream": "^3.1.1 || ^4.0", + "sebastian/code-unit-reverse-lookup": "^1.0.1", + "sebastian/environment": "^4.2.2", + "sebastian/version": "^2.0.1", + "theseer/tokenizer": "^1.1.3" + }, + "require-dev": { + "phpunit/phpunit": "^8.2.2" + }, + "suggest": { + "ext-xdebug": "^2.7.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library 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/7.0.14" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-12-02T13:39:03+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "4b49fb70f067272b659ef0174ff9ca40fdaa6357" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/4b49fb70f067272b659ef0174ff9ca40fdaa6357", + "reference": "4b49fb70f067272b659ef0174ff9ca40fdaa6357", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-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/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T08:25:21+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "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/1.2.1" + }, + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "2.1.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/2454ae1765516d20c4ffe103d85a58a9a3bd5662", + "reference": "2454ae1765516d20c4ffe103d85a58a9a3bd5662", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.1-dev" } }, "autoload": { - "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "http://ocramius.github.com/" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://github.com/doctrine/instantiator", + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", "keywords": [ - "constructor", - "instantiate" + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/2.1.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2015-06-14 21:17:01" + "time": "2020-11-30T08:20:02+00:00" }, { - "name": "phing/phing", - "version": "2.11.0", + "name": "phpunit/php-token-stream", + "version": "4.0.4", "source": { "type": "git", - "url": "https://github.com/phingofficial/phing.git", - "reference": "a185fef6df7241e540466b67486a4c4b552260e1" + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phingofficial/phing/zipball/a185fef6df7241e540466b67486a4c4b552260e1", - "reference": "a185fef6df7241e540466b67486a4c4b552260e1", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/a853a0e183b9db7eed023d7933a858fa1c8d25a3", + "reference": "a853a0e183b9db7eed023d7933a858fa1c8d25a3", "shasum": "" }, "require": { - "php": ">=5.2.0" + "ext-tokenizer": "*", + "php": "^7.3 || ^8.0" }, "require-dev": { - "ext-pdo_sqlite": "*", - "lastcraft/simpletest": "@dev", - "pdepend/pdepend": "2.x", - "pear-pear.php.net/http_request2": "2.2.x", - "pear-pear.php.net/net_growl": "2.7.x", - "pear-pear.php.net/pear_packagefilemanager": "1.7.x", - "pear-pear.php.net/pear_packagefilemanager2": "1.0.x", - "pear-pear.php.net/xml_serializer": "0.20.x", - "pear/pear_exception": "~1.0", - "pear/versioncontrol_git": "@dev", - "pear/versioncontrol_svn": "~0.5", - "phpdocumentor/phpdocumentor": "2.x", - "phploc/phploc": "2.x", - "phpmd/phpmd": "~2.2", - "phpunit/phpunit": ">=3.7", - "sebastian/phpcpd": "2.x", - "squizlabs/php_codesniffer": "~2.2" - }, - "suggest": { - "pdepend/pdepend": "PHP version of JDepend", - "pear/archive_tar": "Tar file management class", - "pear/versioncontrol_git": "A library that provides OO interface to handle Git repository", - "pear/versioncontrol_svn": "A simple OO-style interface for Subversion, the free/open-source version control system", - "phpdocumentor/phpdocumentor": "Documentation Generator for PHP", - "phploc/phploc": "A tool for quickly measuring the size of a PHP project", - "phpmd/phpmd": "PHP version of PMD tool", - "phpunit/php-code-coverage": "Library that provides collection, processing, and rendering functionality for PHP code coverage information", - "phpunit/phpunit": "The PHP Unit Testing Framework", - "sebastian/phpcpd": "Copy/Paste Detector (CPD) for PHP code", - "tedivm/jshrink": "Javascript Minifier built in PHP" + "phpunit/phpunit": "^9.0" }, - "bin": [ - "bin/phing" - ], "type": "library", "extra": { "branch-alias": { - "dev-master": "2.11.x-dev" + "dev-master": "4.0-dev" } }, "autoload": { "classmap": [ - "classes/phing/" + "src/" ] }, "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "classes" - ], "license": [ - "LGPL-3.0" + "BSD-3-Clause" ], "authors": [ { - "name": "Michiel Rook", - "email": "mrook@php.net" - }, - { - "name": "Phing Community", - "homepage": "https://www.phing.info/trac/wiki/Development/Contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" } ], - "description": "PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.", - "homepage": "https://www.phing.info/", + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", "keywords": [ - "build", - "phing", - "task", - "tool" + "tokenizer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", + "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2015-05-20 13:04:38" + "abandoned": true, + "time": "2020-08-04T08:28:15+00:00" }, { - "name": "phpunit/php-code-coverage", - "version": "2.1.9", + "name": "phpunit/phpunit", + "version": "8.5.14", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "5bd48b86cd282da411bb80baac1398ce3fefac41" + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "c25f79895d27b6ecd5abfa63de1606b786a461a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/5bd48b86cd282da411bb80baac1398ce3fefac41", - "reference": "5bd48b86cd282da411bb80baac1398ce3fefac41", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c25f79895d27b6ecd5abfa63de1606b786a461a3", + "reference": "c25f79895d27b6ecd5abfa63de1606b786a461a3", "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.0", - "sebastian/version": "~1.0" + "doctrine/instantiator": "^1.3.1", + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.0", + "phar-io/manifest": "^2.0.1", + "phar-io/version": "^3.0.2", + "php": ">=7.2", + "phpspec/prophecy": "^1.10.3", + "phpunit/php-code-coverage": "^7.0.12", + "phpunit/php-file-iterator": "^2.0.2", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-timer": "^2.1.2", + "sebastian/comparator": "^3.0.2", + "sebastian/diff": "^3.0.2", + "sebastian/environment": "^4.2.3", + "sebastian/exporter": "^3.1.2", + "sebastian/global-state": "^3.0.0", + "sebastian/object-enumerator": "^3.0.3", + "sebastian/resource-operations": "^2.0.1", + "sebastian/type": "^1.1.3", + "sebastian/version": "^2.0.1" }, "require-dev": { - "ext-xdebug": ">=2.1.4", - "phpunit/phpunit": "~4" + "ext-pdo": "*" }, "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.2.1", - "ext-xmlwriter": "*" + "ext-soap": "*", + "ext-xdebug": "*", + "phpunit/php-invoker": "^2.0.0" }, + "bin": [ + "phpunit" + ], "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1.x-dev" + "dev-master": "8.5-dev" } }, "autoload": { @@ -200,82 +1187,189 @@ "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", + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", "keywords": [ - "coverage", + "phpunit", "testing", "xunit" ], - "time": "2015-07-26 12:54:47" + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/8.5.14" + }, + "funding": [ + { + "url": "https://phpunit.de/donate.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2021-01-17T07:37:30+00:00" }, { - "name": "phpunit/php-file-iterator", - "version": "1.3.4", + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.2", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "acd690379117b042d1c8af1fafd61bde001bf6bb" + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619" }, "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-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=5.6" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, "autoload": { "classmap": [ - "File/" + "src/" ] }, "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "" + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } ], + "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/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T08:15:22+00:00" + }, + { + "name": "sebastian/comparator", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "1071dfcef776a57013124ff35e1fc41ccd294758" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/1071dfcef776a57013124ff35e1fc41ccd294758", + "reference": "1071dfcef776a57013124ff35e1fc41ccd294758", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "sebastian/diff": "^3.0", + "sebastian/exporter": "^3.1" + }, + "require-dev": { + "phpunit/phpunit": "^8.5" + }, + "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": "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": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", "keywords": [ - "filesystem", - "iterator" + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2013-10-10 15:34:57" + "time": "2020-11-30T08:04:30+00:00" }, { - "name": "phpunit/php-text-template", - "version": "1.2.1", + "name": "sebastian/diff", + "version": "3.0.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/14f72dd46eaf2f2293cbe79c93cc0bc43161a211", + "reference": "14f72dd46eaf2f2293cbe79c93cc0bc43161a211", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.5 || ^8.0", + "symfony/process": "^2 || ^3.3 || ^4" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, "autoload": { "classmap": [ "src/" @@ -288,35 +1382,124 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2020-11-30T07:59:04+00:00" + }, + { + "name": "sebastian/environment", + "version": "4.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", + "reference": "d47bbbad83711771f167c72d4e3f25f7fcc1f8b0", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "require-dev": { + "phpunit/phpunit": "^7.5" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" } ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", "keywords": [ - "template" + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/4.2.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2015-06-21 13:50:34" + "time": "2020-11-30T07:53:42+00:00" }, { - "name": "phpunit/php-timer", - "version": "1.0.7", + "name": "sebastian/exporter", + "version": "3.1.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b" + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "6b853149eab67d4da22291d36f5b0631c0fd856e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3e82f4e9fc92665fafd9157568e4dcb01d014e5b", - "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/6b853149eab67d4da22291d36f5b0631c0fd856e", + "reference": "6b853149eab67d4da22291d36f5b0631c0fd856e", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.0", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "^6.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1.x-dev" + } + }, "autoload": { "classmap": [ "src/" @@ -329,42 +1512,73 @@ "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": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" } ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", "keywords": [ - "timer" + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2015-06-21 08:01:12" + "time": "2020-11-30T07:47:53+00:00" }, { - "name": "phpunit/php-token-stream", - "version": "1.4.3", + "name": "sebastian/global-state", + "version": "3.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "7a9b0969488c3c54fd62b4d504b3ec758fd005d9" + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "474fb9edb7ab891665d3bfc6317f42a0a150454b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/7a9b0969488c3c54fd62b4d504b3ec758fd005d9", - "reference": "7a9b0969488c3c54fd62b4d504b3ec758fd005d9", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/474fb9edb7ab891665d3bfc6317f42a0a150454b", + "reference": "474fb9edb7ab891665d3bfc6317f42a0a150454b", "shasum": "" }, "require": { - "ext-tokenizer": "*", - "php": ">=5.3.3" + "php": ">=7.2", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" }, "require-dev": { - "phpunit/phpunit": "~4.2" + "ext-dom": "*", + "phpunit/phpunit": "^8.0" + }, + "suggest": { + "ext-uopz": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "3.0-dev" } }, "autoload": { @@ -382,56 +1596,49 @@ "email": "sebastian@phpunit.de" } ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", "keywords": [ - "tokenizer" + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/3.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2015-06-19 03:43:16" + "time": "2020-11-30T07:43:24+00:00" }, { - "name": "phpunit/phpunit", - "version": "4.3.5", + "name": "sebastian/object-enumerator", + "version": "3.0.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "2dab9d593997db4abcf58d0daf798eb4e9cecfe1" + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/2dab9d593997db4abcf58d0daf798eb4e9cecfe1", - "reference": "2dab9d593997db4abcf58d0daf798eb4e9cecfe1", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", + "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", "shasum": "" }, "require": { - "ext-dom": "*", - "ext-json": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-spl": "*", - "php": ">=5.3.3", - "phpunit/php-code-coverage": "~2.0", - "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.0", - "sebastian/diff": "~1.1", - "sebastian/environment": "~1.0", - "sebastian/exporter": "~1.0", - "sebastian/version": "~1.0", - "symfony/yaml": "~2.0" + "php": ">=7.0", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" }, - "suggest": { - "phpunit/php-invoker": "~1.1" + "require-dev": { + "phpunit/phpunit": "^6.0" }, - "bin": [ - "phpunit" - ], "type": "library", "extra": { "branch-alias": { - "dev-master": "4.3.x-dev" + "dev-master": "3.0.x-dev" } }, "autoload": { @@ -440,59 +1647,53 @@ ] }, "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "", - "../../symfony/yaml/" - ], "license": [ "BSD-3-Clause" ], "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "email": "sebastian@phpunit.de" } ], - "description": "The PHP Unit Testing framework.", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" + "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/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/3.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2014-11-11 10:11:09" + "time": "2020-11-30T07:40:27+00:00" }, { - "name": "phpunit/phpunit-mock-objects", - "version": "2.3.6", + "name": "sebastian/object-reflector", + "version": "1.1.2", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "18dfbcb81d05e2296c0bcddd4db96cade75e6f42" + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/18dfbcb81d05e2296c0bcddd4db96cade75e6f42", - "reference": "18dfbcb81d05e2296c0bcddd4db96cade75e6f42", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", + "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", "shasum": "" }, "require": { - "doctrine/instantiator": "~1.0,>=1.0.2", - "php": ">=5.3.3", - "phpunit/php-text-template": "~1.2", - "sebastian/exporter": "~1.2" + "php": ">=7.0" }, "require-dev": { - "phpunit/phpunit": "~4.4" - }, - "suggest": { - "ext-soap": "*" + "phpunit/phpunit": "^6.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.3.x-dev" + "dev-master": "1.1-dev" } }, "autoload": { @@ -507,44 +1708,47 @@ "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/", - "keywords": [ - "mock", - "xunit" + "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/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/1.1.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2015-07-10 06:54:24" + "time": "2020-11-30T07:37:18+00:00" }, { - "name": "sebastian/comparator", - "version": "1.2.0", + "name": "sebastian/recursion-context", + "version": "3.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "937efb279bd37a375bcadf584dec0726f84dbf22" + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/937efb279bd37a375bcadf584dec0726f84dbf22", - "reference": "937efb279bd37a375bcadf584dec0726f84dbf22", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/367dcba38d6e1977be014dc4b22f47a484dac7fb", + "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb", "shasum": "" }, "require": { - "php": ">=5.3.3", - "sebastian/diff": "~1.2", - "sebastian/exporter": "~1.2" + "php": ">=7.0" }, "require-dev": { - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^6.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.2.x-dev" + "dev-master": "3.0.x-dev" } }, "autoload": { @@ -558,55 +1762,53 @@ ], "authors": [ { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" }, { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" }, { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "name": "Adam Harvey", + "email": "aharvey@php.net" } ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "http://www.github.com/sebastianbergmann/comparator", - "keywords": [ - "comparator", - "compare", - "equality" + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2015-07-26 15:48:44" + "time": "2020-11-30T07:34:24+00:00" }, { - "name": "sebastian/diff", - "version": "1.3.0", + "name": "sebastian/resource-operations", + "version": "2.0.2", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "863df9687835c62aa423a22412d26fa2ebde3fd3" + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/863df9687835c62aa423a22412d26fa2ebde3fd3", - "reference": "863df9687835c62aa423a22412d26fa2ebde3fd3", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/31d35ca87926450c44eae7e2611d45a7a65ea8b3", + "reference": "31d35ca87926450c44eae7e2611d45a7a65ea8b3", "shasum": "" }, "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.2" + "php": ">=7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -619,46 +1821,49 @@ "BSD-3-Clause" ], "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" } ], - "description": "Diff implementation", - "homepage": "http://www.github.com/sebastianbergmann/diff", - "keywords": [ - "diff" + "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/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2015-02-22 15:13:53" + "time": "2020-11-30T07:30:19+00:00" }, { - "name": "sebastian/environment", - "version": "1.3.0", + "name": "sebastian/type", + "version": "1.1.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "4fe0a44cddd8cc19583a024bdc7374eb2fef0b87" + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/4fe0a44cddd8cc19583a024bdc7374eb2fef0b87", - "reference": "4fe0a44cddd8cc19583a024bdc7374eb2fef0b87", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/0150cfbc4495ed2df3872fb31b26781e4e077eb4", + "reference": "0150cfbc4495ed2df3872fb31b26781e4e077eb4", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.2" }, "require-dev": { - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^8.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3.x-dev" + "dev-master": "1.1-dev" } }, "autoload": { @@ -673,43 +1878,45 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/1.1.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } ], - "time": "2015-07-26 06:42:57" + "time": "2020-11-30T07:25:11+00:00" }, { - "name": "sebastian/exporter", - "version": "1.2.1", + "name": "sebastian/version", + "version": "2.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "7ae5513327cb536431847bcc0c10edba2701064e" + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/7ae5513327cb536431847bcc0c10edba2701064e", - "reference": "7ae5513327cb536431847bcc0c10edba2701064e", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", "shasum": "" }, "require": { - "php": ">=5.3.3", - "sebastian/recursion-context": "~1.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.4" + "php": ">=5.6" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.2.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -722,102 +1929,119 @@ "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": "Adam Harvey", - "email": "aharvey@php.net" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], - "time": "2015-06-21 07:55:53" + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/master" + }, + "time": "2016-10-03T07:35:21+00:00" }, { - "name": "sebastian/recursion-context", - "version": "1.0.1", + "name": "symfony/polyfill-ctype", + "version": "v1.22.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "994d4a811bafe801fb06dccbee797863ba2792ba" + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "c6c942b1ac76c82448322025e084cadc56048b4e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/994d4a811bafe801fb06dccbee797863ba2792ba", - "reference": "994d4a811bafe801fb06dccbee797863ba2792ba", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/c6c942b1ac76c82448322025e084cadc56048b4e", + "reference": "c6c942b1ac76c82448322025e084cadc56048b4e", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=7.1" }, - "require-dev": { - "phpunit/phpunit": "~4.4" + "suggest": { + "ext-ctype": "For best performance" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-main": "1.22-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" } }, "autoload": { - "classmap": [ - "src/" + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], "authors": [ { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" }, { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.22.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" }, { - "name": "Adam Harvey", - "email": "aharvey@php.net" + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" } ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2015-06-21 08:04:50" + "time": "2021-01-07T16:49:33+00:00" }, { - "name": "sebastian/version", - "version": "1.0.6", + "name": "theseer/tokenizer", + "version": "1.2.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6" + "url": "https://github.com/theseer/tokenizer.git", + "reference": "75a63c33a8577608444246075ea0af0d052e452a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", - "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", + "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": [ @@ -830,44 +2054,53 @@ ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" } ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", - "time": "2015-06-21 13:59:46" + "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" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2020-07-12T23:59:07+00:00" }, { - "name": "symfony/yaml", - "version": "v2.7.2", + "name": "webmozart/assert", + "version": "1.9.1", "source": { "type": "git", - "url": "https://github.com/symfony/Yaml.git", - "reference": "4bfbe0ed3909bfddd75b70c094391ec1f142f860" + "url": "https://github.com/webmozarts/assert.git", + "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/Yaml/zipball/4bfbe0ed3909bfddd75b70c094391ec1f142f860", - "reference": "4bfbe0ed3909bfddd75b70c094391ec1f142f860", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", + "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": "^5.3.3 || ^7.0 || ^8.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "phpstan/phpstan": "<0.12.20", + "vimeo/psalm": "<3.9.1" }, "require-dev": { - "symfony/phpunit-bridge": "~2.7" + "phpunit/phpunit": "^4.8.36 || ^7.5.13" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } - }, "autoload": { "psr-4": { - "Symfony\\Component\\Yaml\\": "" + "Webmozart\\Assert\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -876,17 +2109,21 @@ ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" } ], - "description": "Symfony Yaml Component", - "homepage": "https://symfony.com", - "time": "2015-07-01 11:25:50" + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/1.9.1" + }, + "time": "2020-07-08T17:02:28+00:00" } ], "aliases": [], @@ -895,8 +2132,9 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=5.3", + "php": ">=7.3", "ext-curl": "*" }, - "platform-dev": [] + "platform-dev": [], + "plugin-api-version": "2.0.0" } diff --git a/pear_generator.php b/pear_generator.php deleted file mode 100644 index 5df66b7..0000000 --- a/pear_generator.php +++ /dev/null @@ -1,117 +0,0 @@ - BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * @category Packaging - * @package Esendex - * @author Commify Support - * @copyright 2019 Commify Ltd. - * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause - * @link https://github.com/esendex/esendex-php-sdk - */ -namespace Esendex; - -error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT); - -require_once dirname(__FILE__) . '/vendor/autoload.php'; - -$apiVersion = Model\Api::getApiVersion(); -$apiState = 'stable'; -$releaseVersion = Model\Api::getVersion(); -$releaseState = 'stable'; - -$description = <<setReleaseVersion($releaseVersion); -$package->setReleaseStability($releaseState); -$package->setAPIVersion($apiVersion); -$package->setAPIStability($apiState); - -$package->setOptions( - array( - 'filelistgenerator' => 'file', - 'simpleoutput' => true, - 'baseinstalldir' => '/', - 'packagedirectory' => './', - 'clearcontents' => true, - 'dir_roles' => array( - '/Esendex' => 'php', - '/test' => 'test', - '/' => 'doc' - ), - 'ignore' => array( - 'TestResult.xml', - 'build.xml', - 'composer.*', - '*.phar', - '*.tar.gz' - ) - ) -); - -$package->setPackage('Esendex'); -$package->setSummary('Esendex PHP REST SDK'); -$package->setDescription($description); -$package->setNotes($releaseNotes); -$package->setChannel('esendex.github.com/pear'); -$package->setPackageType('php'); -$package->setLicense( - 'BSD-3-Clause', - false, - "LICENSE" -); - -$package->addMaintainer( - 'lead', - 'support', - 'Commify Support', - 'support@esendex.com' -); - -$package->setPhpDep('5.3.0'); -$package->setPearInstallerDep('1.9.3'); -$package->addPackageDepWithChannel('optional', 'PHPUnit', 'pear.phpunit.de'); - -$package->generateContents(); -$package->addRelease(); - -if (isset($_GET['make']) - || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make') -) { - $package->writePackageFile(); -} else { - $package->debugPackageFile(); -} diff --git a/src/autoload.php b/src/Esendex/AutoLoad.php similarity index 96% rename from src/autoload.php rename to src/Esendex/AutoLoad.php index 8173e7c..2111ee9 100644 --- a/src/autoload.php +++ b/src/Esendex/AutoLoad.php @@ -36,7 +36,7 @@ define('ESENDEX_HOME', dirname(__FILE__)); -class AutoLoader +class AutoLoad { const SPLIT_DIR = DIRECTORY_SEPARATOR; const SPLIT_NS = '\\'; @@ -55,4 +55,4 @@ public static function load($class) } } -\spl_autoload_register(array('\Esendex\AutoLoader', 'load')); +\spl_autoload_register(array('\Esendex\AutoLoad', 'load')); diff --git a/src/Esendex/Model/Api.php b/src/Esendex/Model/Api.php index 3b8ad9a..d797187 100644 --- a/src/Esendex/Model/Api.php +++ b/src/Esendex/Model/Api.php @@ -38,9 +38,9 @@ class Api { const NS = "http://api.esendex.com/ns/"; - private static $major = 2; - private static $minor = 1; - private static $patch = 1; + private static $major = 3; + private static $minor = 0; + private static $patch = 0; public static function getVersion() { diff --git a/test/Esendex/Authentication/LoginAuthenticationTest.php b/test/Esendex/Authentication/LoginAuthenticationTest.php index 09858f5..3892b95 100644 --- a/test/Esendex/Authentication/LoginAuthenticationTest.php +++ b/test/Esendex/Authentication/LoginAuthenticationTest.php @@ -34,7 +34,7 @@ */ namespace Esendex\Authentication; -class LoginAuthenticationTest extends \PHPUnit_Framework_TestCase +class LoginAuthenticationTest extends \PHPUnit\Framework\TestCase { /** * @test diff --git a/test/Esendex/Authentication/SessionAuthenticationTest.php b/test/Esendex/Authentication/SessionAuthenticationTest.php index 8958912..c38f10e 100644 --- a/test/Esendex/Authentication/SessionAuthenticationTest.php +++ b/test/Esendex/Authentication/SessionAuthenticationTest.php @@ -34,7 +34,7 @@ */ namespace Esendex\Authentication; -class SessionAuthenticationTest extends \PHPUnit_Framework_TestCase +class SessionAuthenticationTest extends \PHPUnit\Framework\TestCase { /** * @test diff --git a/test/Esendex/Http/UriBuilderTest.php b/test/Esendex/Http/UriBuilderTest.php index ea557a1..f15f91f 100644 --- a/test/Esendex/Http/UriBuilderTest.php +++ b/test/Esendex/Http/UriBuilderTest.php @@ -34,7 +34,7 @@ */ namespace Esendex\Http; -class UriBuilderTest extends \PHPUnit_Framework_TestCase +class UriBuilderTest extends \PHPUnit\Framework\TestCase { /** * @test diff --git a/test/Esendex/Parser/AccountXmlParserTest.php b/test/Esendex/Parser/AccountXmlParserTest.php index b497956..8d5825f 100644 --- a/test/Esendex/Parser/AccountXmlParserTest.php +++ b/test/Esendex/Parser/AccountXmlParserTest.php @@ -36,7 +36,7 @@ use Esendex\Model\Account; -class AccountXmlParserTest extends \PHPUnit_Framework_TestCase +class AccountXmlParserTest extends \PHPUnit\Framework\TestCase { const RESPONSE_XML = << diff --git a/test/Esendex/Parser/DispatchXmlParserTest.php b/test/Esendex/Parser/DispatchXmlParserTest.php index 27c3f42..4f2ff13 100644 --- a/test/Esendex/Parser/DispatchXmlParserTest.php +++ b/test/Esendex/Parser/DispatchXmlParserTest.php @@ -38,7 +38,7 @@ use Esendex\Model\MessageBody; use Esendex\Model\DispatchMessage; -class DispatchXmlParserTest extends \PHPUnit_Framework_TestCase +class DispatchXmlParserTest extends \PHPUnit\Framework\TestCase { const DISPATCHER_RESPONSE_XML = << @@ -181,7 +181,7 @@ function encodeMessageInvalidOriginator($originator, $expectedMessage) ); $parser = new DispatchXmlParser($reference); - $this->setExpectedException("\\Esendex\\Exceptions\\ArgumentException", $expectedMessage); + $this->expectException("\\Esendex\\Exceptions\\ArgumentException", $expectedMessage); $parser->encode($message); } @@ -199,7 +199,7 @@ function encodeMessageInvalidRecipient() ); $parser = new DispatchXmlParser($reference); - $this->setExpectedException("\\Esendex\\Exceptions\\ArgumentException", "Recipient is invalid"); + $this->expectException("\\Esendex\\Exceptions\\ArgumentException", "Recipient is invalid"); $parser->encode($message); } @@ -218,7 +218,7 @@ function encodeMessageInvalidValidity() ); $parser = new DispatchXmlParser($reference); - $this->setExpectedException( + $this->expectException( "\\Esendex\\Exceptions\\ArgumentException", "Validity too long, must be less or equal to than 72" ); @@ -283,7 +283,7 @@ function parseMessageResultsUnexpectedXml() { $parser = new DispatchXmlParser("reference"); - $this->setExpectedException("\\Esendex\\Exceptions\\XmlException"); + $this->expectException("\\Esendex\\Exceptions\\XmlException"); $parser->parse(""); } } diff --git a/test/Esendex/Parser/InboxXmlParserTest.php b/test/Esendex/Parser/InboxXmlParserTest.php index 476ed96..419698c 100644 --- a/test/Esendex/Parser/InboxXmlParserTest.php +++ b/test/Esendex/Parser/InboxXmlParserTest.php @@ -34,16 +34,18 @@ */ namespace Esendex\Parser; -class InboxXmlParserTest extends \PHPUnit_Framework_TestCase +class InboxXmlParserTest extends \PHPUnit\Framework\TestCase { private $headerParser; private $parser; - function setUp() + + function setUp(): void { $this->headerParser = $this->getMockBuilder("\\Esendex\\Parser\\MessageHeaderXmlParser") ->disableOriginalConstructor() - ->getMock(); + ->onlyMethods(['parseHeader']) + ->getMockForAbstractClass(); $this->parser = new InboxXmlParser($this->headerParser); } diff --git a/test/Esendex/Parser/MessageHeaderXmlParserTest.php b/test/Esendex/Parser/MessageHeaderXmlParserTest.php index 361710b..06a6803 100644 --- a/test/Esendex/Parser/MessageHeaderXmlParserTest.php +++ b/test/Esendex/Parser/MessageHeaderXmlParserTest.php @@ -36,7 +36,7 @@ use Esendex\Model\Message; -class MessageHeaderXmlParserTest extends \PHPUnit_Framework_TestCase +class MessageHeaderXmlParserTest extends \PHPUnit\Framework\TestCase { const OUTBOUND_RESPONSE_XML = << diff --git a/test/Esendex/Parser/MessageInformationXmlParserTest.php b/test/Esendex/Parser/MessageInformationXmlParserTest.php index 1d248a4..237ff0e 100644 --- a/test/Esendex/Parser/MessageInformationXmlParserTest.php +++ b/test/Esendex/Parser/MessageInformationXmlParserTest.php @@ -38,7 +38,7 @@ use Esendex\Model\MessageBody; use Esendex\Model\MessageInformation; -class MessageInformationXmlParserTest extends \PHPUnit_Framework_TestCase +class MessageInformationXmlParserTest extends \PHPUnit\Framework\TestCase { function characterSets() { @@ -76,7 +76,7 @@ function encodeRequestInvalidCharacterSet() { $parser = new MessageInformationXmlParser(); - $this->setExpectedException( + $this->expectException( "\\Esendex\\Exceptions\\ArgumentException", "characterSet value was 'Latin1' and must be one of 'GSM', " . "'Unicode' or 'Auto'" diff --git a/test/Esendex/Parser/OptOutXmlParserTest.php b/test/Esendex/Parser/OptOutXmlParserTest.php index 25eca81..ecbeb26 100644 --- a/test/Esendex/Parser/OptOutXmlParserTest.php +++ b/test/Esendex/Parser/OptOutXmlParserTest.php @@ -36,7 +36,7 @@ use Esendex\Model\OptOut; -class OptOutXmlParserTest extends \PHPUnit_Framework_TestCase +class OptOutXmlParserTest extends \PHPUnit\Framework\TestCase { const OPTOUT_RESPONSE_XML = " EX0012345 diff --git a/test/Esendex/Parser/SentMessagesXmlParserTest.php b/test/Esendex/Parser/SentMessagesXmlParserTest.php index 408d757..eae7a77 100644 --- a/test/Esendex/Parser/SentMessagesXmlParserTest.php +++ b/test/Esendex/Parser/SentMessagesXmlParserTest.php @@ -34,16 +34,17 @@ */ namespace Esendex\Parser; -class SentMessagesXmlParserTest extends \PHPUnit_Framework_TestCase +class SentMessagesXmlParserTest extends \PHPUnit\Framework\TestCase { private $headerParser; private $parser; - function setUp() + function setUp() : void { $this->headerParser = $this->getMockBuilder("\\Esendex\\Parser\\MessageHeaderXmlParser") ->disableOriginalConstructor() - ->getMock(); + ->onlyMethods(['parseHeader']) + ->getMockForAbstractClass(); $this->parser = new SentMessagesXmlParser($this->headerParser); } diff --git a/test/Esendex/Services/AccountServiceTest.php b/test/Esendex/Services/AccountServiceTest.php index 1eb6ea8..a8aa657 100644 --- a/test/Esendex/Services/AccountServiceTest.php +++ b/test/Esendex/Services/AccountServiceTest.php @@ -34,7 +34,7 @@ */ namespace Esendex; -class AccountServiceTest extends \PHPUnit_Framework_TestCase +class AccountServiceTest extends \PHPUnit\Framework\TestCase { private $reference; private $username; @@ -44,22 +44,23 @@ class AccountServiceTest extends \PHPUnit_Framework_TestCase private $parser; private $service; - function setUp() + function setUp() : void { $this->reference = "asjkdhlajksdhla"; $this->username = "jhdkfjh"; $this->password = "dklfjlsdjkf"; $this->authentication = new Authentication\LoginAuthentication($this->reference, $this->username, $this->password); - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil->expects($this->any()) ->method("isSecure") ->will($this->returnValue(true)); $this->parser = $this->getMockBuilder("\\Esendex\\Parser\\AccountXmlParser") ->disableOriginalConstructor() - ->getMock(); - + ->onlyMethods(['parse']) + ->getMockForAbstractClass(); + $this->service = new AccountService($this->authentication, $this->httpUtil, $this->parser); } diff --git a/test/Esendex/Services/CheckAccessServiceTest.php b/test/Esendex/Services/CheckAccessServiceTest.php index 382f201..66c6116 100644 --- a/test/Esendex/Services/CheckAccessServiceTest.php +++ b/test/Esendex/Services/CheckAccessServiceTest.php @@ -34,7 +34,7 @@ */ namespace Esendex; -class CheckAccessServiceTest extends \PHPUnit_Framework_TestCase +class CheckAccessServiceTest extends \PHPUnit\Framework\TestCase { const ACCOUNTS_RESPONSE_XML = << @@ -61,7 +61,7 @@ class CheckAccessServiceTest extends \PHPUnit_Framework_TestCase private $httpUtil; private $service; - function setUp() + function setUp() : void { $this->reference = "EX123456"; $this->username = "jhdkfjh"; @@ -72,7 +72,7 @@ function setUp() $this->password ); - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil->expects($this->any()) ->method("isSecure") ->will($this->returnValue(true)); diff --git a/test/Esendex/Services/DispatchServiceTest.php b/test/Esendex/Services/DispatchServiceTest.php index 9aff2c5..a6bf8b5 100644 --- a/test/Esendex/Services/DispatchServiceTest.php +++ b/test/Esendex/Services/DispatchServiceTest.php @@ -34,7 +34,7 @@ */ namespace Esendex; -class DispatchServiceTest extends \PHPUnit_Framework_TestCase +class DispatchServiceTest extends \PHPUnit\Framework\TestCase { private $reference; private $username; @@ -45,7 +45,7 @@ class DispatchServiceTest extends \PHPUnit_Framework_TestCase public $parser; - function setUp() + function setUp() : void { $this->reference = "EX123456"; $this->username = "jhdkfjh"; @@ -56,14 +56,15 @@ function setUp() $this->password ); - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil->expects($this->any()) ->method("isSecure") ->will($this->returnValue(true)); $this->parser = $this->getMockBuilder("\\Esendex\\Parser\\DispatchXmlParser") ->disableOriginalConstructor() - ->getMock(); + ->onlyMethods(['parse', 'encode']) + ->getMockForAbstractClass(); $this->service = new DispatchService($this->authentication, $this->httpUtil, $this->parser); } @@ -119,7 +120,7 @@ function sendFailure() ->method("parse") ->will($this->returnValue(array())); - $this->setExpectedException( + $this->expectException( "\\Esendex\\Exceptions\\EsendexException", "Error parsing the dispatch result", null diff --git a/test/Esendex/Services/InboxServiceTest.php b/test/Esendex/Services/InboxServiceTest.php index 6d80b30..1f0b2cc 100644 --- a/test/Esendex/Services/InboxServiceTest.php +++ b/test/Esendex/Services/InboxServiceTest.php @@ -34,7 +34,9 @@ */ namespace Esendex; -class InboxServiceTest extends \PHPUnit_Framework_TestCase +use Esendex\Parser\InboxXmlParser; + +class InboxServiceTest extends \PHPUnit\Framework\TestCase { private $reference; private $username; @@ -44,14 +46,14 @@ class InboxServiceTest extends \PHPUnit_Framework_TestCase private $parser; private $service; - function setUp() + function setUp() : void { $this->reference = "asjkdhlajksdhla"; $this->username = "jhdkfjh"; $this->password = "dklfjlsdjkf"; $this->authentication = new Authentication\LoginAuthentication($this->reference, $this->username, $this->password); - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil->expects($this->any()) ->method("isSecure") ->will($this->returnValue(true)); diff --git a/test/Esendex/Services/MessageBodyServiceTest.php b/test/Esendex/Services/MessageBodyServiceTest.php index b2f51e7..1d51f26 100644 --- a/test/Esendex/Services/MessageBodyServiceTest.php +++ b/test/Esendex/Services/MessageBodyServiceTest.php @@ -35,7 +35,7 @@ namespace Esendex; use Esendex\Model\MessageBody; -class MessageBodyServiceTest extends \PHPUnit_Framework_TestCase +class MessageBodyServiceTest extends \PHPUnit\Framework\TestCase { const MESSAGEBODY_RESPONSE_XML = << @@ -60,7 +60,7 @@ class MessageBodyServiceTest extends \PHPUnit_Framework_TestCase private $httpUtil; private $service; - function setUp() + function setUp() : void { $this->messageId = uniqid(); $this->accountReference = "asjkdhlajksdhla"; @@ -68,7 +68,7 @@ function setUp() $this->password = "dklfjlsdjkf"; $this->authentication = new Authentication\LoginAuthentication($this->accountReference, $this->username, $this->password); - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil->expects($this->any()) ->method("isSecure") ->will($this->returnValue(true)); @@ -105,7 +105,7 @@ function getMessageBodyById() */ function getMessageBodyByIdWhenNullId() { - $this->setExpectedException("\\Esendex\\Exceptions\\ArgumentException", "messageId is null"); + $this->expectException("\\Esendex\\Exceptions\\ArgumentException", "messageId is null"); $this->service->getMessageBodyById(null); } @@ -115,7 +115,7 @@ function getMessageBodyByIdWhenNullId() */ function getMessageBodyByIdWhenNotString() { - $this->setExpectedException("\\Esendex\\Exceptions\\ArgumentException", "messageId is not a string"); + $this->expectException("\\Esendex\\Exceptions\\ArgumentException", "messageId is not a string"); $this->service->getMessageBodyById(99); } @@ -179,7 +179,7 @@ function getMessageBodyWithMessageHeader() */ function getMessageBodyWhenInvalidInput() { - $this->setExpectedException( + $this->expectException( "\\Esendex\\Exceptions\\ArgumentException", "Should be either MessageBody Uri or ResultMessage" ); diff --git a/test/Esendex/Services/MessageHeaderServiceTest.php b/test/Esendex/Services/MessageHeaderServiceTest.php index d2e1456..55e7996 100644 --- a/test/Esendex/Services/MessageHeaderServiceTest.php +++ b/test/Esendex/Services/MessageHeaderServiceTest.php @@ -34,7 +34,7 @@ */ namespace Esendex; -class MessageHeaderServiceTest extends \PHPUnit_Framework_TestCase +class MessageHeaderServiceTest extends \PHPUnit\Framework\TestCase { private $messageId; private $reference; @@ -45,7 +45,7 @@ class MessageHeaderServiceTest extends \PHPUnit_Framework_TestCase private $parser; private $service; - function setUp() + function setUp() : void { $this->messageId = uniqid(); $this->reference = "asjkdhlajksdhla"; @@ -57,14 +57,15 @@ function setUp() $this->password ); - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil->expects($this->any()) ->method("isSecure") ->will($this->returnValue(true)); $this->parser = $this->getMockBuilder("\\Esendex\\Parser\\MessageHeaderXmlParser") ->disableOriginalConstructor() - ->getMock(); + ->onlyMethods(['parse']) + ->getMockForAbstractClass(); $this->service = new MessageHeaderService($this->authentication, $this->httpUtil, $this->parser); } diff --git a/test/Esendex/Services/MessageInformationServiceTest.php b/test/Esendex/Services/MessageInformationServiceTest.php index e7735d7..f984b6d 100644 --- a/test/Esendex/Services/MessageInformationServiceTest.php +++ b/test/Esendex/Services/MessageInformationServiceTest.php @@ -37,7 +37,7 @@ use Esendex\Model\MessageBody; use Esendex\Model\MessageInformation; -class MessageInformationServiceTest extends \PHPUnit_Framework_TestCase +class MessageInformationServiceTest extends \PHPUnit\Framework\TestCase { private $reference; private $username; @@ -47,7 +47,7 @@ class MessageInformationServiceTest extends \PHPUnit_Framework_TestCase private $parser; private $service; - function setUp() + function setUp() : void { $this->reference = "EX123456"; $this->username = "jhdkfjh"; @@ -58,14 +58,15 @@ function setUp() $this->password ); - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil->expects($this->any()) ->method("isSecure") ->will($this->returnValue(true)); $this->parser = $this->getMockBuilder("\\Esendex\\Parser\\MessageInformationXmlParser") ->disableOriginalConstructor() - ->getMock(); + ->onlyMethods(['encode', 'parse']) + ->getMockForAbstractClass(); $this->service = new MessageInformationService( $this->authentication, @@ -176,7 +177,7 @@ function getMessageInformationWithUnexpectedResponse($response) ->method("parse") ->will($this->returnValue($response)); - $this->setExpectedException( + $this->expectException( "\\Esendex\\Exceptions\\EsendexException", "Error parsing the result", null diff --git a/test/Esendex/Services/OptOutsServiceTest.php b/test/Esendex/Services/OptOutsServiceTest.php index 18ad033..0fa596e 100644 --- a/test/Esendex/Services/OptOutsServiceTest.php +++ b/test/Esendex/Services/OptOutsServiceTest.php @@ -36,7 +36,7 @@ use Esendex\Model\OptOut; -class OptOutsServiceTest extends \PHPUnit_Framework_TestCase +class OptOutsServiceTest extends \PHPUnit\Framework\TestCase { const OPTOUT_XML_RESPONSE = " EX0012345 @@ -55,7 +55,7 @@ class OptOutsServiceTest extends \PHPUnit_Framework_TestCase public $parser; - function setUp() + function setUp() : void { $this->optOutId = "47a1144b-8a68-4608-9360-d4a52aaf90d2"; $this->username = "jhdkfjh"; @@ -67,14 +67,15 @@ function setUp() $this->password ); - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil->expects($this->any()) ->method("isSecure") ->will($this->returnValue(true)); $this->parser = $this->getMockBuilder("\\Esendex\\Parser\\OptOutXmlParser") ->disableOriginalConstructor() - ->getMock(); + ->onlyMethods(['parse', 'encodePostRequest', 'parseMultipleResult', 'parsePostResponse']) + ->getMockForAbstractClass(); $this->service = new OptOutsService($this->authentication, $this->httpUtil, $this->parser); } diff --git a/test/Esendex/Services/SentMessagesServiceTest.php b/test/Esendex/Services/SentMessagesServiceTest.php index 76b4179..a45c564 100644 --- a/test/Esendex/Services/SentMessagesServiceTest.php +++ b/test/Esendex/Services/SentMessagesServiceTest.php @@ -34,7 +34,7 @@ */ namespace Esendex; -class SentMessagesServiceTest extends \PHPUnit_Framework_TestCase +class SentMessagesServiceTest extends \PHPUnit\Framework\TestCase { private $reference; private $username; @@ -44,14 +44,14 @@ class SentMessagesServiceTest extends \PHPUnit_Framework_TestCase private $parser; private $service; - function setUp() + function setUp() : void { $this->reference = "asjkdhlajksdhla"; $this->username = "jhdkfjh"; $this->password = "dklfjlsdjkf"; $this->authentication = new Authentication\LoginAuthentication($this->reference, $this->username, $this->password); - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil->expects($this->any()) ->method("isSecure") ->will($this->returnValue(true)); diff --git a/test/Esendex/Services/SessionServiceTest.php b/test/Esendex/Services/SessionServiceTest.php index c0e60b7..6f3bfad 100644 --- a/test/Esendex/Services/SessionServiceTest.php +++ b/test/Esendex/Services/SessionServiceTest.php @@ -34,7 +34,7 @@ */ namespace Esendex; -class SessionServiceTest extends \PHPUnit_Framework_TestCase +class SessionServiceTest extends \PHPUnit\Framework\TestCase { private $httpUtil; private $service; @@ -46,9 +46,9 @@ class SessionServiceTest extends \PHPUnit_Framework_TestCase XML; - function setUp() + function setUp() : void { - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil->expects($this->any()) ->method("isSecure") ->will($this->returnValue(true)); diff --git a/test/Esendex/Services/SurveyReportServiceTests/GetStandardReportForDateRangeTest.php b/test/Esendex/Services/SurveyReportServiceTests/GetStandardReportForDateRangeTest.php index cd3c9d5..46bc0cf 100644 --- a/test/Esendex/Services/SurveyReportServiceTests/GetStandardReportForDateRangeTest.php +++ b/test/Esendex/Services/SurveyReportServiceTests/GetStandardReportForDateRangeTest.php @@ -36,7 +36,7 @@ use Esendex\Model\Surveys\DateRangeType; -class GetStandardReportForDateRangeTest extends \PHPUnit_Framework_TestCase +class GetStandardReportForDateRangeTest extends \PHPUnit\Framework\TestCase { private $expectedRecipient = "447538414622"; private $expectedStatus = "Delivered"; @@ -56,7 +56,7 @@ class GetStandardReportForDateRangeTest extends \PHPUnit_Framework_TestCase private $httpUtil; private $surveyId; - function setUp() + function setUp() : void { $response = " @@ -82,7 +82,7 @@ function setUp() $this->authentication = new Authentication\LoginAuthentication("SV0000001", "someone@esendex.com", "hunter2"); $this->surveyId = "e6ea4f5e-4d41-4b1e-8912-6c3131978a77"; - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil ->expects($this->once()) ->method("get") diff --git a/test/Esendex/Services/SurveyReportServiceTests/GetStandardReportTest.php b/test/Esendex/Services/SurveyReportServiceTests/GetStandardReportTest.php index 64df6f8..f013ac1 100644 --- a/test/Esendex/Services/SurveyReportServiceTests/GetStandardReportTest.php +++ b/test/Esendex/Services/SurveyReportServiceTests/GetStandardReportTest.php @@ -34,7 +34,7 @@ */ namespace Esendex; -class GetStandardReportTest extends \PHPUnit_Framework_TestCase +class GetStandardReportTest extends \PHPUnit\Framework\TestCase { private $expectedRecipient = "447538414622"; private $expectedStatus = "Delivered"; @@ -51,7 +51,7 @@ class GetStandardReportTest extends \PHPUnit_Framework_TestCase private $httpUtil; private $surveyId; - function setUp() + function setUp() : void { $response = " @@ -74,7 +74,7 @@ function setUp() $this->authentication = new Authentication\LoginAuthentication("SV0000001", "someone@esendex.com", "hunter2"); $this->surveyId = "e6ea4f5e-4d41-4b1e-8912-6c3131978a77"; - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil ->expects($this->once()) ->method("get") diff --git a/test/Esendex/Services/SurveyReportServiceTests/GetStandardReportWithInvalidDateRangeTypeTest.php b/test/Esendex/Services/SurveyReportServiceTests/GetStandardReportWithInvalidDateRangeTypeTest.php index 7193003..fed8893 100644 --- a/test/Esendex/Services/SurveyReportServiceTests/GetStandardReportWithInvalidDateRangeTypeTest.php +++ b/test/Esendex/Services/SurveyReportServiceTests/GetStandardReportWithInvalidDateRangeTypeTest.php @@ -34,7 +34,7 @@ */ namespace Esendex; -class GetStandardReportWithInvalidDateRangeTypeTest extends \PHPUnit_Framework_TestCase +class GetStandardReportWithInvalidDateRangeTypeTest extends \PHPUnit\Framework\TestCase { private $startDate; private $endDate; @@ -44,7 +44,7 @@ class GetStandardReportWithInvalidDateRangeTypeTest extends \PHPUnit_Framework_T private $httpUtil; private $surveyId; - function setUp() + function setUp() : void { $this->startDate = new \DateTime("2016-12-01T00:00:00"); $this->endDate = new \DateTime("2016-12-02T00:00:00"); @@ -52,7 +52,7 @@ function setUp() $this->authentication = new Authentication\LoginAuthentication("SV0000001", "someone@esendex.com", "hunter2"); $this->surveyId = "e6ea4f5e-4d41-4b1e-8912-6c3131978a77"; - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->service = new SurveyReportService($this->authentication, $this->httpUtil); } diff --git a/test/Esendex/Services/SurveySendServiceTests/SendTests.php b/test/Esendex/Services/SurveySendServiceTests/SendTests.php index a0efa89..6bef4bb 100644 --- a/test/Esendex/Services/SurveySendServiceTests/SendTests.php +++ b/test/Esendex/Services/SurveySendServiceTests/SendTests.php @@ -34,7 +34,7 @@ */ namespace Esendex; -class SendTests extends \PHPUnit_Framework_TestCase +class SendTests extends \PHPUnit\Framework\TestCase { private $reference; private $username; @@ -43,7 +43,7 @@ class SendTests extends \PHPUnit_Framework_TestCase private $httpUtil; private $service; - function setUp() + function setUp() : void { $this->reference = "EX123456"; $this->username = "jhdkfjh"; @@ -54,7 +54,7 @@ function setUp() $this->password ); - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil->expects($this->any()) ->method("isSecure") ->will($this->returnValue("")); diff --git a/test/Esendex/Services/SurveySendServiceTests/SendWithMetadataTests.php b/test/Esendex/Services/SurveySendServiceTests/SendWithMetadataTests.php index 7f55a98..5cc3927 100644 --- a/test/Esendex/Services/SurveySendServiceTests/SendWithMetadataTests.php +++ b/test/Esendex/Services/SurveySendServiceTests/SendWithMetadataTests.php @@ -34,7 +34,7 @@ */ namespace Esendex; -class SendWithMetadataTests extends \PHPUnit_Framework_TestCase +class SendWithMetadataTests extends \PHPUnit\Framework\TestCase { private $reference; private $username; @@ -43,7 +43,7 @@ class SendWithMetadataTests extends \PHPUnit_Framework_TestCase private $httpUtil; private $service; - function setUp() + function setUp() : void { $this->reference = "EX123456"; $this->username = "jhdkfjh"; @@ -54,7 +54,7 @@ function setUp() $this->password ); - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil->expects($this->any()) ->method("isSecure") ->will($this->returnValue("")); diff --git a/test/Esendex/Services/SurveySendServiceTests/SendWithTemplateDataTests.php b/test/Esendex/Services/SurveySendServiceTests/SendWithTemplateDataTests.php index f6e1c08..e0ee5d1 100644 --- a/test/Esendex/Services/SurveySendServiceTests/SendWithTemplateDataTests.php +++ b/test/Esendex/Services/SurveySendServiceTests/SendWithTemplateDataTests.php @@ -34,7 +34,7 @@ */ namespace Esendex; -class SendWithTemplateDataTests extends \PHPUnit_Framework_TestCase +class SendWithTemplateDataTests extends \PHPUnit\Framework\TestCase { private $reference; private $username; @@ -43,7 +43,7 @@ class SendWithTemplateDataTests extends \PHPUnit_Framework_TestCase private $httpUtil; private $service; - function setUp() + function setUp() : void { $this->reference = "EX123456"; $this->username = "jhdkfjh"; @@ -54,7 +54,7 @@ function setUp() $this->password ); - $this->httpUtil = $this->getMock("\\Esendex\\Http\\IHttp"); + $this->httpUtil = $this->getMockForAbstractClass("\\Esendex\\Http\\IHttp"); $this->httpUtil->expects($this->any()) ->method("isSecure") ->will($this->returnValue(""));