diff --git a/.gitattributes b/.gitattributes index 7325c690..2df781e3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,5 +4,6 @@ .gitattributes export-ignore .gitignore export-ignore .travis.yml export-ignore +.composer.lock export-ignore .php_cs export-ignore phpunit.xml.dist export-ignore diff --git a/.gitignore b/.gitignore index f146c861..673fe323 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,6 @@ tmp/ zf-mkdoc-theme/ clover.xml -composer.lock coveralls-upload.json phpunit.xml vendor diff --git a/.travis.yml b/.travis.yml index 92393090..67cdec54 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,61 +2,77 @@ sudo: false language: php -branches: - except: - - /^release-\d+\.\d+\.\d+.*$/ - - /^ghgfk-.*$/ - cache: directories: - $HOME/.composer/cache - - $HOME/.local - - zf-mkdoc-theme env: global: - - SITE_URL: https://zendframework.github.io/zend-soap - - GH_USER_NAME: "Matthew Weier O'Phinney" - - GH_USER_EMAIL: matthew@weierophinney.net - - GH_REF: github.com/zendframework/zend-soap.git - - secure: "O2ECNTc7cif3sN3Iyjiheu4UsHcs4g/TrNtc5XqcTpecxcM4ncG1oLAoF62ZN2cwdpJ8nBwl3BQDI9nkLS+nxPHxdqV5bobZ/8ZcI1/2by+l9N720WQfezPxxSxAAPl5b1SXxocsWUiykJJpADqGdYjgfmgAyiK70tXN4XwZl27Svnh+ulqFB2aYQNUv28jJZ3/Pt8jW5sgTVYKYZ65bYirEHGMsUnOK5nJ/W04qoq1d8Qj5x4xTrA71KecibljXpqXHtrQRBpGoKmU8N0w7XdGn0l6xojEJ3QkLE1/1SrZq0r4GHgP294358IsepdQXoqAIxULR0nlNkLmDY//wQI6WRWOpTI+eYN+unoq/zDgPnZGzV6NX/BrRt1yxhNij8CpIvR8cg4WP52Cl2djG5YWr5sOOqffIvSDKJLZgUOb512F7DdI2Pr6HSDyOSqrKoMGMpLJb7/1sEumLfVGmpu9fgpWakxR5wTa0oMBZknyJVy18nj+mj5YgIzD+1FYzYj5ttajh3KKaxDgTCYHJkCA/MRONsr/Ap1oHI2W5iDgAEyaJhru0XefNjW37n/sx3QqZ+F4VZDbuTy8FaFMbnT6+brbCLdrxtmIwo2OhYob+G5rWQejnF81g1ShUE/H3l/rlQ+BLZzwYEgAHkJ5YTAQYq37E3Ra7DgOv14Ayjvo=" + - COMPOSER_ARGS="--no-interaction" + - COVERAGE_DEPS="satooshi/php-coveralls" + - LEGACY_DEPS="phpunit/phpunit" matrix: - fast_finish: true include: - - php: 5.5 + - php: 5.6 + env: + - DEPS=lowest + - php: 5.6 env: - - CS_CHECK=true + - DEPS=locked - php: 5.6 env: + - DEPS=latest + - php: 7 + env: + - DEPS=lowest + - php: 7 + env: + - DEPS=locked + - CHECK_CS=true - TEST_COVERAGE=true - - DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)" - - PATH="$HOME/.local/bin:$PATH" - php: 7 - - php: hhvm + env: + - DEPS=latest + - php: 7.1 + env: + - DEPS=lowest + - php: 7.1 + env: + - DEPS=locked + - php: 7.1 + env: + - DEPS=latest + - php: 7.2 + env: + - DEPS=lowest + - php: 7.2 + env: + - DEPS=locked + - php: 7.2 + env: + - DEPS=latest allow_failures: - - php: hhvm - -notifications: - irc: "irc.freenode.org#zftalk.dev" - email: false + - php: 7.2 before_install: - if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi - travis_retry composer self-update install: - - if [[ $TEST_COVERAGE == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi - - travis_retry composer install --no-interaction --ignore-platform-reqs + - travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs + - if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi + - if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi + - if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi + - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi + - stty cols 120 && composer show script: - - if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; fi - - if [[ $TEST_COVERAGE != 'true' ]]; then composer test; fi + - if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi - if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi - - if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then wget -O theme-installer.sh "https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh" ; chmod 755 theme-installer.sh ; ./theme-installer.sh ; fi - -after_success: - - if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi after_script: - - if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer upload-coverage ; fi + - if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi + +notifications: + email: false diff --git a/composer.json b/composer.json index 173e294e..38cb2652 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ } }, "require": { - "php": "^5.5 || ^7.0", + "php": "^5.6 || ^7.0", "zendframework/zend-server": "^2.6.1", "zendframework/zend-stdlib": "^2.7 || ^3.0", "zendframework/zend-uri": "^2.5.2" @@ -21,7 +21,7 @@ "require-dev": { "zendframework/zend-config": "^2.6", "zendframework/zend-http": "^2.5.4", - "phpunit/PHPUnit": "^4.8", + "phpunit/PHPUnit": "^5.7.21 || ^6.3", "squizlabs/php_codesniffer": "^2.3.1" }, "suggest": { diff --git a/composer.lock b/composer.lock new file mode 100644 index 00000000..67c17c8d --- /dev/null +++ b/composer.lock @@ -0,0 +1,2141 @@ +{ + "_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", + "This file is @generated automatically" + ], + "content-hash": "6ff4a7ed9512594d91a3a35dab6a4349", + "packages": [ + { + "name": "container-interop/container-interop", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/container-interop/container-interop.git", + "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/container-interop/container-interop/zipball/79cbf1341c22ec75643d841642dd5d6acd83bdb8", + "reference": "79cbf1341c22ec75643d841642dd5d6acd83bdb8", + "shasum": "" + }, + "require": { + "psr/container": "^1.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Interop\\Container\\": "src/Interop/Container/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Promoting the interoperability of container objects (DIC, SL, etc.)", + "homepage": "https://github.com/container-interop/container-interop", + "time": "2017-02-14T19:40:03+00:00" + }, + { + "name": "psr/container", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/b7ce3b176482dbbc1245ebf52b181af44c2cf55f", + "reference": "b7ce3b176482dbbc1245ebf52b181af44c2cf55f", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "time": "2017-02-14T16:28:37+00:00" + }, + { + "name": "zendframework/zend-code", + "version": "3.1.0", + "source": { + "type": "git", + "url": "https://github.com/zendframework/zend-code.git", + "reference": "2899c17f83a7207f2d7f53ec2f421204d3beea27" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zendframework/zend-code/zipball/2899c17f83a7207f2d7f53ec2f421204d3beea27", + "reference": "2899c17f83a7207f2d7f53ec2f421204d3beea27", + "shasum": "" + }, + "require": { + "php": "^5.6 || 7.0.0 - 7.0.4 || ^7.0.6", + "zendframework/zend-eventmanager": "^2.6 || ^3.0" + }, + "require-dev": { + "doctrine/annotations": "~1.0", + "ext-phar": "*", + "phpunit/phpunit": "^4.8.21", + "squizlabs/php_codesniffer": "^2.5", + "zendframework/zend-stdlib": "^2.7 || ^3.0" + }, + "suggest": { + "doctrine/annotations": "Doctrine\\Common\\Annotations >=1.0 for annotation features", + "zendframework/zend-stdlib": "Zend\\Stdlib component" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1-dev", + "dev-develop": "3.2-dev" + } + }, + "autoload": { + "psr-4": { + "Zend\\Code\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "provides facilities to generate arbitrary code using an object oriented interface", + "homepage": "https://github.com/zendframework/zend-code", + "keywords": [ + "code", + "zf2" + ], + "time": "2016-10-24T13:23:32+00:00" + }, + { + "name": "zendframework/zend-escaper", + "version": "2.5.2", + "source": { + "type": "git", + "url": "https://github.com/zendframework/zend-escaper.git", + "reference": "2dcd14b61a72d8b8e27d579c6344e12c26141d4e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zendframework/zend-escaper/zipball/2dcd14b61a72d8b8e27d579c6344e12c26141d4e", + "reference": "2dcd14b61a72d8b8e27d579c6344e12c26141d4e", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "fabpot/php-cs-fixer": "1.7.*", + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.5-dev", + "dev-develop": "2.6-dev" + } + }, + "autoload": { + "psr-4": { + "Zend\\Escaper\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "homepage": "https://github.com/zendframework/zend-escaper", + "keywords": [ + "escaper", + "zf2" + ], + "time": "2016-06-30T19:48:38+00:00" + }, + { + "name": "zendframework/zend-eventmanager", + "version": "3.2.0", + "source": { + "type": "git", + "url": "https://github.com/zendframework/zend-eventmanager.git", + "reference": "9d72db10ceb6e42fb92350c0cb54460da61bd79c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zendframework/zend-eventmanager/zipball/9d72db10ceb6e42fb92350c0cb54460da61bd79c", + "reference": "9d72db10ceb6e42fb92350c0cb54460da61bd79c", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "athletic/athletic": "^0.1", + "container-interop/container-interop": "^1.1.0", + "phpunit/phpunit": "^6.0.7 || ^5.7.14", + "zendframework/zend-coding-standard": "~1.0.0", + "zendframework/zend-stdlib": "^2.7.3 || ^3.0" + }, + "suggest": { + "container-interop/container-interop": "^1.1.0, to use the lazy listeners feature", + "zendframework/zend-stdlib": "^2.7.3 || ^3.0, to use the FilterChain feature" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev", + "dev-develop": "3.3-dev" + } + }, + "autoload": { + "psr-4": { + "Zend\\EventManager\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "Trigger and listen to events within a PHP application", + "homepage": "https://github.com/zendframework/zend-eventmanager", + "keywords": [ + "event", + "eventmanager", + "events", + "zf2" + ], + "time": "2017-07-11T19:17:22+00:00" + }, + { + "name": "zendframework/zend-server", + "version": "2.7.0", + "source": { + "type": "git", + "url": "https://github.com/zendframework/zend-server.git", + "reference": "7cb617ca3e9b24579f544a244ee79ae61f480914" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zendframework/zend-server/zipball/7cb617ca3e9b24579f544a244ee79ae61f480914", + "reference": "7cb617ca3e9b24579f544a244ee79ae61f480914", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0", + "zendframework/zend-code": "^2.5 || ^3.0", + "zendframework/zend-stdlib": "^2.5 || ^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8", + "squizlabs/php_codesniffer": "^2.3.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev", + "dev-develop": "2.8-dev" + } + }, + "autoload": { + "psr-4": { + "Zend\\Server\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "homepage": "https://github.com/zendframework/zend-server", + "keywords": [ + "server", + "zf2" + ], + "time": "2016-06-20T22:27:55+00:00" + }, + { + "name": "zendframework/zend-stdlib", + "version": "3.1.0", + "source": { + "type": "git", + "url": "https://github.com/zendframework/zend-stdlib.git", + "reference": "debedcfc373a293f9250cc9aa03cf121428c8e78" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zendframework/zend-stdlib/zipball/debedcfc373a293f9250cc9aa03cf121428c8e78", + "reference": "debedcfc373a293f9250cc9aa03cf121428c8e78", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "athletic/athletic": "~0.1", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "^2.6.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1-dev", + "dev-develop": "3.2-dev" + } + }, + "autoload": { + "psr-4": { + "Zend\\Stdlib\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "homepage": "https://github.com/zendframework/zend-stdlib", + "keywords": [ + "stdlib", + "zf2" + ], + "time": "2016-09-13T14:38:50+00:00" + }, + { + "name": "zendframework/zend-uri", + "version": "2.5.2", + "source": { + "type": "git", + "url": "https://github.com/zendframework/zend-uri.git", + "reference": "0bf717a239432b1a1675ae314f7c4acd742749ed" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zendframework/zend-uri/zipball/0bf717a239432b1a1675ae314f7c4acd742749ed", + "reference": "0bf717a239432b1a1675ae314f7c4acd742749ed", + "shasum": "" + }, + "require": { + "php": "^5.5 || ^7.0", + "zendframework/zend-escaper": "^2.5", + "zendframework/zend-validator": "^2.5" + }, + "require-dev": { + "fabpot/php-cs-fixer": "1.7.*", + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.5-dev", + "dev-develop": "2.6-dev" + } + }, + "autoload": { + "psr-4": { + "Zend\\Uri\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "a component that aids in manipulating and validating ? Uniform Resource Identifiers (URIs)", + "homepage": "https://github.com/zendframework/zend-uri", + "keywords": [ + "uri", + "zf2" + ], + "time": "2016-02-17T22:38:51+00:00" + }, + { + "name": "zendframework/zend-validator", + "version": "2.10.1", + "source": { + "type": "git", + "url": "https://github.com/zendframework/zend-validator.git", + "reference": "010084ddbd33299bf51ea6f0e07f8f4e8bd832a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zendframework/zend-validator/zipball/010084ddbd33299bf51ea6f0e07f8f4e8bd832a8", + "reference": "010084ddbd33299bf51ea6f0e07f8f4e8bd832a8", + "shasum": "" + }, + "require": { + "container-interop/container-interop": "^1.1", + "php": "^5.6 || ^7.0", + "zendframework/zend-stdlib": "^2.7.6 || ^3.1" + }, + "require-dev": { + "phpunit/phpunit": "^6.0.8 || ^5.7.15", + "zendframework/zend-cache": "^2.6.1", + "zendframework/zend-coding-standard": "~1.0.0", + "zendframework/zend-config": "^2.6", + "zendframework/zend-db": "^2.7", + "zendframework/zend-filter": "^2.6", + "zendframework/zend-http": "^2.5.4", + "zendframework/zend-i18n": "^2.6", + "zendframework/zend-math": "^2.6", + "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3", + "zendframework/zend-session": "^2.8", + "zendframework/zend-uri": "^2.5" + }, + "suggest": { + "zendframework/zend-db": "Zend\\Db component, required by the (No)RecordExists validator", + "zendframework/zend-filter": "Zend\\Filter component, required by the Digits validator", + "zendframework/zend-i18n": "Zend\\I18n component to allow translation of validation error messages", + "zendframework/zend-i18n-resources": "Translations of validator messages", + "zendframework/zend-math": "Zend\\Math component, required by the Csrf validator", + "zendframework/zend-servicemanager": "Zend\\ServiceManager component to allow using the ValidatorPluginManager and validator chains", + "zendframework/zend-session": "Zend\\Session component, ^2.8; required by the Csrf validator", + "zendframework/zend-uri": "Zend\\Uri component, required by the Uri and Sitemap\\Loc validators" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.10-dev", + "dev-develop": "2.11-dev" + }, + "zf": { + "component": "Zend\\Validator", + "config-provider": "Zend\\Validator\\ConfigProvider" + } + }, + "autoload": { + "psr-4": { + "Zend\\Validator\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "provides a set of commonly needed validators", + "homepage": "https://github.com/zendframework/zend-validator", + "keywords": [ + "validator", + "zf2" + ], + "time": "2017-08-22T14:19:23+00:00" + } + ], + "packages-dev": [ + { + "name": "doctrine/instantiator", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", + "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "shasum": "" + }, + "require": { + "php": ">=5.3,<8.0-DEV" + }, + "require-dev": { + "athletic/athletic": "~0.1.8", + "ext-pdo": "*", + "ext-phar": "*", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "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": "http://ocramius.github.com/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://github.com/doctrine/instantiator", + "keywords": [ + "constructor", + "instantiate" + ], + "time": "2015-06-14T21:17:01+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.6.1", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/8e6e04167378abf1ddb4d3522d8755c5fd90d102", + "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102", + "shasum": "" + }, + "require": { + "php": ">=5.4.0" + }, + "require-dev": { + "doctrine/collections": "1.*", + "phpunit/phpunit": "~4.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "homepage": "https://github.com/myclabs/DeepCopy", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "time": "2017-04-12T18:52:22+00:00" + }, + { + "name": "phar-io/manifest", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0", + "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-phar": "*", + "phar-io/version": "^1.0.1", + "php": "^5.6 || ^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.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)", + "time": "2017-03-05T18:14:27+00:00" + }, + { + "name": "phar-io/version", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df", + "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.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", + "time": "2017-03-05T17:38:23+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "1.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/144c307535e82c8fdcaacbcfc1d6d8eeb896687c", + "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.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" + ], + "time": "2015-12-27T11:43:31+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "3.2.2", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "4aada1f93c72c35e22fb1383b47fee43b8f1d157" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/4aada1f93c72c35e22fb1383b47fee43b8f1d157", + "reference": "4aada1f93c72c35e22fb1383b47fee43b8f1d157", + "shasum": "" + }, + "require": { + "php": ">=5.5", + "phpdocumentor/reflection-common": "^1.0@dev", + "phpdocumentor/type-resolver": "^0.3.0", + "webmozart/assert": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^4.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "time": "2017-08-08T06:39:58+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "0.3.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "fb3933512008d8162b3cdf9e18dba9309b7c3773" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/fb3933512008d8162b3cdf9e18dba9309b7c3773", + "reference": "fb3933512008d8162b3cdf9e18dba9309b7c3773", + "shasum": "" + }, + "require": { + "php": "^5.5 || ^7.0", + "phpdocumentor/reflection-common": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^5.2||^4.8.24" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.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" + } + ], + "time": "2017-06-03T08:32:36+00:00" + }, + { + "name": "phpspec/prophecy", + "version": "v1.7.0", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "93d39f1f7f9326d746203c7c056f300f7f126073" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/93d39f1f7f9326d746203c7c056f300f7f126073", + "reference": "93d39f1f7f9326d746203c7c056f300f7f126073", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^5.3|^7.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2", + "sebastian/comparator": "^1.1|^2.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0" + }, + "require-dev": { + "phpspec/phpspec": "^2.5|^3.2", + "phpunit/phpunit": "^4.8 || ^5.6.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6.x-dev" + } + }, + "autoload": { + "psr-0": { + "Prophecy\\": "src/" + } + }, + "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" + ], + "time": "2017-03-02T20:05:34+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "5.2.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "8ed1902a57849e117b5651fc1a5c48110946c06b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/8ed1902a57849e117b5651fc1a5c48110946c06b", + "reference": "8ed1902a57849e117b5651fc1a5c48110946c06b", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": "^7.0", + "phpunit/php-file-iterator": "^1.4.2", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-token-stream": "^1.4.11 || ^2.0", + "sebastian/code-unit-reverse-lookup": "^1.0.1", + "sebastian/environment": "^3.0", + "sebastian/version": "^2.0.1", + "theseer/tokenizer": "^1.1" + }, + "require-dev": { + "ext-xdebug": "^2.5", + "phpunit/phpunit": "^6.0" + }, + "suggest": { + "ext-xdebug": "^2.5.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.2.x-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" + } + ], + "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" + ], + "time": "2017-08-03T12:40:43+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "1.4.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3cc8f69b3028d0f96a9078e6295d86e9bf019be5", + "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-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" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "time": "2016-10-03T07:40:28+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" + ], + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "1.0.9", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "time": "2017-02-26T11:10:40+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "9a02332089ac48e704c70f6cefed30c224e3c0b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/9a02332089ac48e704c70f6cefed30c224e3c0b0", + "reference": "9a02332089ac48e704c70f6cefed30c224e3c0b0", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.2.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "time": "2017-08-20T05:47:52+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "6.3.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "9501bab711403a1ab5b8378a8adb4ec3db3debdb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9501bab711403a1ab5b8378a8adb4ec3db3debdb", + "reference": "9501bab711403a1ab5b8378a8adb4ec3db3debdb", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "myclabs/deep-copy": "^1.6.1", + "phar-io/manifest": "^1.0.1", + "phar-io/version": "^1.0", + "php": "^7.0", + "phpspec/prophecy": "^1.7", + "phpunit/php-code-coverage": "^5.2.2", + "phpunit/php-file-iterator": "^1.4.2", + "phpunit/php-text-template": "^1.2.1", + "phpunit/php-timer": "^1.0.9", + "phpunit/phpunit-mock-objects": "^4.0.3", + "sebastian/comparator": "^2.0.2", + "sebastian/diff": "^2.0", + "sebastian/environment": "^3.1", + "sebastian/exporter": "^3.1", + "sebastian/global-state": "^2.0", + "sebastian/object-enumerator": "^3.0.3", + "sebastian/resource-operations": "^1.0", + "sebastian/version": "^2.0.1" + }, + "conflict": { + "phpdocumentor/reflection-docblock": "3.0.2", + "phpunit/dbunit": "<3.0" + }, + "require-dev": { + "ext-pdo": "*" + }, + "suggest": { + "ext-xdebug": "*", + "phpunit/php-invoker": "^1.1" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "6.3.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": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "time": "2017-08-04T05:20:39+00:00" + }, + { + "name": "phpunit/phpunit-mock-objects", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", + "reference": "2f789b59ab89669015ad984afa350c4ec577ade0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/2f789b59ab89669015ad984afa350c4ec577ade0", + "reference": "2f789b59ab89669015ad984afa350c4ec577ade0", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.5", + "php": "^7.0", + "phpunit/php-text-template": "^1.2.1", + "sebastian/exporter": "^3.0" + }, + "conflict": { + "phpunit/phpunit": "<6.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "suggest": { + "ext-soap": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-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" + } + ], + "description": "Mock Object library for PHPUnit", + "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "keywords": [ + "mock", + "xunit" + ], + "time": "2017-08-03T14:08:16+00:00" + }, + { + "name": "sebastian/code-unit-reverse-lookup", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "reference": "4419fcdb5eabb9caa61a27c7a1db532a6b55dd18", + "shasum": "" + }, + "require": { + "php": "^5.6 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^5.7 || ^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "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/", + "time": "2017-03-04T06:30:41+00:00" + }, + { + "name": "sebastian/comparator", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "ae068fede81d06e7bb9bb46a367210a3d3e1fe6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/ae068fede81d06e7bb9bb46a367210a3d3e1fe6a", + "reference": "ae068fede81d06e7bb9bb46a367210a3d3e1fe6a", + "shasum": "" + }, + "require": { + "php": "^7.0", + "sebastian/diff": "^2.0", + "sebastian/exporter": "^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.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": "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" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "http://www.github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "time": "2017-08-03T07:14:59+00:00" + }, + { + "name": "sebastian/diff", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd", + "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff" + ], + "time": "2017-08-03T08:09:46+00:00" + }, + { + "name": "sebastian/environment", + "version": "3.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5", + "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.1.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "time": "2017-07-01T08:51:00+00:00" + }, + { + "name": "sebastian/exporter", + "version": "3.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "234199f4528de6d12aaa58b612e98f7d36adb937" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/234199f4528de6d12aaa58b612e98f7d36adb937", + "reference": "234199f4528de6d12aaa58b612e98f7d36adb937", + "shasum": "" + }, + "require": { + "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/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "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" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "time": "2017-04-03T13:19:02+00:00" + }, + { + "name": "sebastian/global-state", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", + "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "time": "2017-04-27T15:39:26+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/7cfd9e65d11ffb5af41198476395774d4c8a84c5", + "reference": "7cfd9e65d11ffb5af41198476395774d4c8a84c5", + "shasum": "" + }, + "require": { + "php": "^7.0", + "sebastian/object-reflector": "^1.1.1", + "sebastian/recursion-context": "^3.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "time": "2017-08-03T12:35:26+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "773f97c67f28de00d397be301821b06708fca0be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/773f97c67f28de00d397be301821b06708fca0be", + "reference": "773f97c67f28de00d397be301821b06708fca0be", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "time": "2017-03-29T09:07:27+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", + "reference": "5b0cd723502bac3b006cbf3dbf7a1e3fcefe4fa8", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "time": "2017-03-03T06:23:57+00:00" + }, + { + "name": "sebastian/resource-operations", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/resource-operations.git", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "shasum": "" + }, + "require": { + "php": ">=5.6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides a list of PHP built-in functions that operate on resources", + "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "time": "2015-07-28T20:34:47+00:00" + }, + { + "name": "sebastian/version", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", + "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "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": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "time": "2016-10-03T07:35:21+00:00" + }, + { + "name": "squizlabs/php_codesniffer", + "version": "2.9.1", + "source": { + "type": "git", + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dcbed1074f8244661eecddfc2a675430d8d33f62", + "reference": "dcbed1074f8244661eecddfc2a675430d8d33f62", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.1.2" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "bin": [ + "scripts/phpcs", + "scripts/phpcbf" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "classmap": [ + "CodeSniffer.php", + "CodeSniffer/CLI.php", + "CodeSniffer/Exception.php", + "CodeSniffer/File.php", + "CodeSniffer/Fixer.php", + "CodeSniffer/Report.php", + "CodeSniffer/Reporting.php", + "CodeSniffer/Sniff.php", + "CodeSniffer/Tokens.php", + "CodeSniffer/Reports/", + "CodeSniffer/Tokenizers/", + "CodeSniffer/DocGenerators/", + "CodeSniffer/Standards/AbstractPatternSniff.php", + "CodeSniffer/Standards/AbstractScopeSniff.php", + "CodeSniffer/Standards/AbstractVariableSniff.php", + "CodeSniffer/Standards/IncorrectPatternException.php", + "CodeSniffer/Standards/Generic/Sniffs/", + "CodeSniffer/Standards/MySource/Sniffs/", + "CodeSniffer/Standards/PEAR/Sniffs/", + "CodeSniffer/Standards/PSR1/Sniffs/", + "CodeSniffer/Standards/PSR2/Sniffs/", + "CodeSniffer/Standards/Squiz/Sniffs/", + "CodeSniffer/Standards/Zend/Sniffs/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "lead" + } + ], + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "http://www.squizlabs.com/php-codesniffer", + "keywords": [ + "phpcs", + "standards" + ], + "time": "2017-05-22T02:43:20+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/cb2f008f3f05af2893a87208fe6a6c4985483f8b", + "reference": "cb2f008f3f05af2893a87208fe6a6c4985483f8b", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^7.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "time": "2017-04-07T12:08:54+00:00" + }, + { + "name": "webmozart/assert", + "version": "1.2.0", + "source": { + "type": "git", + "url": "https://github.com/webmozart/assert.git", + "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozart/assert/zipball/2db61e59ff05fe5126d152bd0655c9ea113e550f", + "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f", + "shasum": "" + }, + "require": { + "php": "^5.3.3 || ^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.6", + "sebastian/version": "^1.0.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "time": "2016-11-23T20:04:58+00:00" + }, + { + "name": "zendframework/zend-config", + "version": "2.6.0", + "source": { + "type": "git", + "url": "https://github.com/zendframework/zend-config.git", + "reference": "2920e877a9f6dca9fa8f6bd3b1ffc2e19bb1e30d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zendframework/zend-config/zipball/2920e877a9f6dca9fa8f6bd3b1ffc2e19bb1e30d", + "reference": "2920e877a9f6dca9fa8f6bd3b1ffc2e19bb1e30d", + "shasum": "" + }, + "require": { + "php": "^5.5 || ^7.0", + "zendframework/zend-stdlib": "^2.7 || ^3.0" + }, + "require-dev": { + "fabpot/php-cs-fixer": "1.7.*", + "phpunit/phpunit": "~4.0", + "zendframework/zend-filter": "^2.6", + "zendframework/zend-i18n": "^2.5", + "zendframework/zend-json": "^2.6.1", + "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3" + }, + "suggest": { + "zendframework/zend-filter": "Zend\\Filter component", + "zendframework/zend-i18n": "Zend\\I18n component", + "zendframework/zend-json": "Zend\\Json to use the Json reader or writer classes", + "zendframework/zend-servicemanager": "Zend\\ServiceManager for use with the Config Factory to retrieve reader and writer instances" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev", + "dev-develop": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Zend\\Config\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "provides a nested object property based user interface for accessing this configuration data within application code", + "homepage": "https://github.com/zendframework/zend-config", + "keywords": [ + "config", + "zf2" + ], + "time": "2016-02-04T23:01:10+00:00" + }, + { + "name": "zendframework/zend-http", + "version": "2.6.0", + "source": { + "type": "git", + "url": "https://github.com/zendframework/zend-http.git", + "reference": "09f4d279f46d86be63171ff62ee0f79eca878678" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zendframework/zend-http/zipball/09f4d279f46d86be63171ff62ee0f79eca878678", + "reference": "09f4d279f46d86be63171ff62ee0f79eca878678", + "shasum": "" + }, + "require": { + "php": "^5.5 || ^7.0", + "zendframework/zend-loader": "^2.5", + "zendframework/zend-stdlib": "^2.5 || ^3.0", + "zendframework/zend-uri": "^2.5", + "zendframework/zend-validator": "^2.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.0", + "zendframework/zend-coding-standard": "~1.0.0", + "zendframework/zend-config": "^2.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev", + "dev-develop": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Zend\\Http\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "provides an easy interface for performing Hyper-Text Transfer Protocol (HTTP) requests", + "homepage": "https://github.com/zendframework/zend-http", + "keywords": [ + "http", + "zf2" + ], + "time": "2017-01-31T14:41:02+00:00" + }, + { + "name": "zendframework/zend-loader", + "version": "2.5.1", + "source": { + "type": "git", + "url": "https://github.com/zendframework/zend-loader.git", + "reference": "c5fd2f071bde071f4363def7dea8dec7393e135c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/zendframework/zend-loader/zipball/c5fd2f071bde071f4363def7dea8dec7393e135c", + "reference": "c5fd2f071bde071f4363def7dea8dec7393e135c", + "shasum": "" + }, + "require": { + "php": ">=5.3.23" + }, + "require-dev": { + "fabpot/php-cs-fixer": "1.7.*", + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.5-dev", + "dev-develop": "2.6-dev" + } + }, + "autoload": { + "psr-4": { + "Zend\\Loader\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "homepage": "https://github.com/zendframework/zend-loader", + "keywords": [ + "loader", + "zf2" + ], + "time": "2015-06-03T14:05:47+00:00" + } + ], + "aliases": [], + "minimum-stability": "dev", + "stability-flags": [], + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^5.6 || ^7.0" + }, + "platform-dev": [], + "platform-overrides": { + "php": "7.0" + } +} diff --git a/test/AutoDiscover/OnlineTest.php b/test/AutoDiscover/OnlineTest.php index f41a71b6..e73ee318 100644 --- a/test/AutoDiscover/OnlineTest.php +++ b/test/AutoDiscover/OnlineTest.php @@ -9,9 +9,10 @@ namespace ZendTest\Soap\AutoDiscover; +use PHPUnit\Framework\TestCase; use Zend\Soap\Client; -class OnlineTest extends \PHPUnit_Framework_TestCase +class OnlineTest extends TestCase { protected $baseuri; diff --git a/test/AutoDiscoverTest.php b/test/AutoDiscoverTest.php index 1c33c96c..c0433c9d 100644 --- a/test/AutoDiscoverTest.php +++ b/test/AutoDiscoverTest.php @@ -9,11 +9,14 @@ namespace ZendTest\Soap; +use InvalidArgumentException; +use PHPUnit\Framework\TestCase; use Zend\Soap\AutoDiscover; +use \Zend\Soap\Exception\InvalidArgumentException as SoapInvalidArgumentException; use Zend\Soap\Wsdl; use Zend\Uri\Uri; -class AutoDiscoverTest extends \PHPUnit_Framework_TestCase +class AutoDiscoverTest extends TestCase { /** * @var AutoDiscover @@ -105,7 +108,7 @@ protected function assertValidWSDL(\DOMDocument $dom) /** * @param \DOMElement $element */ - public function testDocumentNodes($element = null) + public function documentNodesTest($element = null) { if (!($this->dom instanceof \DOMDocument)) { return; @@ -124,7 +127,7 @@ public function testDocumentNodes($element = null) . $node->nodeName . ' has no valid namespace. Line: ' . $node->getLineNo() ); - $this->testDocumentNodes($node); + $this->documentNodesTest($node); } } } @@ -212,7 +215,7 @@ public function testAutoDiscoverConstructorWsdlClassException() public function testSetServiceName($newName, $shouldBeValid) { if ($shouldBeValid == false) { - $this->setExpectedException('InvalidArgumentException'); + $this->expectException(InvalidArgumentException::class); } $this->server->setServiceName($newName); @@ -475,7 +478,7 @@ public function testSetClass() $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testSetClassWithDifferentStyles() @@ -723,7 +726,7 @@ public function testSetClassWithDifferentStyles() $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -854,7 +857,7 @@ public function testAddFunctionSimple() $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testAddFunctionSimpleWithDifferentStyle() @@ -972,7 +975,7 @@ public function testAddFunctionSimpleWithDifferentStyle() $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -1075,7 +1078,7 @@ public function testAddFunctionSimpleInReturnNameCompabilityMode() $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testAddFunctionMultiple() @@ -1193,7 +1196,7 @@ public function testAddFunctionMultiple() $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -1219,15 +1222,15 @@ public function testChangeWsdlUriInConstructor($uri, $expectedUri) $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testSetNonStringNonZendUriUriThrowsException() { $server = new AutoDiscover(); - $this->setExpectedException( - '\Zend\Soap\Exception\InvalidArgumentException', + $this->expectException(SoapInvalidArgumentException::class); + $this->expectExceptionMessage( 'Argument to \Zend\Soap\AutoDiscover::setUri should be string or \Zend\Uri\Uri instance.' ); $server->setUri(["bogus"]); @@ -1253,7 +1256,7 @@ public function testChangingWsdlUriAfterGenerationIsPossible( ); $this->assertValidWSDL($wsdl->toDomDocument()); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -1304,7 +1307,7 @@ public function testUsingClassWithMethodsWithMultipleDefaultParameterValues() $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -1349,7 +1352,7 @@ public function testComplexTypesThatAreUsedMultipleTimesAreRecoginzedOnce() $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -1375,7 +1378,7 @@ public function testReturnSameArrayOfObjectsResponseOnDifferentMethodsWhenArrayC $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -1408,7 +1411,7 @@ public function testReturnSameArrayOfObjectsResponseOnDifferentMethodsWhenArrayS $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -1431,7 +1434,7 @@ public function testNoReturnIsOneWayCallInSetClass() $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -1454,7 +1457,7 @@ public function testNoReturnIsOneWayCallInAddFunction() $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -1484,7 +1487,7 @@ public function testRecursiveWsdlDependencies() $this->assertValidWSDL($this->dom); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** diff --git a/test/Client/DotNetTest.php b/test/Client/DotNetTest.php index 66ef281f..126726a5 100644 --- a/test/Client/DotNetTest.php +++ b/test/Client/DotNetTest.php @@ -9,7 +9,8 @@ namespace ZendTest\Soap\Client; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; +use Zend\Http\Client\Adapter\Curl; use Zend\Soap\Client\Common; use Zend\Soap\Client\DotNet as DotNetClient; use ZendTest\Soap\TestAsset\MockCallUserFunc; @@ -19,7 +20,7 @@ * * @group Zend_Soap */ -class DotNetTest extends PHPUnit_Framework_TestCase +class DotNetTest extends TestCase { /** * .NET SOAP client. @@ -31,7 +32,7 @@ class DotNetTest extends PHPUnit_Framework_TestCase /** * cURL client. * - * @var \Zend\Http\Client\Adapter\Curl + * @var Curl */ private $curlClient = null; @@ -181,10 +182,10 @@ public function testLastResponseHeadersCanBeFetchedCorrectly() */ private function mockCurlClient() { - $this->curlClient = $this->getMock( - 'Zend\Http\Client\Adapter\Curl', - ['close', 'connect', 'read', 'write'] - ); + $this->curlClient = $this->getMockBuilder(Curl::class) + ->setMethods(['close', 'connect', 'read', 'write']) + ->getMock(); + $this->client->setCurlClient($this->curlClient); } diff --git a/test/ClientTest.php b/test/ClientTest.php index c9ffe34c..9fd5ceab 100644 --- a/test/ClientTest.php +++ b/test/ClientTest.php @@ -9,12 +9,13 @@ namespace ZendTest\Soap; +use PHPUnit\Framework\TestCase; use Zend\Soap\AutoDiscover; use Zend\Soap\Client; use Zend\Soap\Server; use Zend\Soap\Wsdl; -class ClientTest extends \PHPUnit_Framework_TestCase +class ClientTest extends TestCase { public function setUp() { @@ -584,14 +585,16 @@ public function testSetCookieIsDelegatedToSoapClient() $fixtureCookieKey = "foo"; $fixtureCookieValue = "bar"; - $clientMock = $this->getMock( - 'SoapClient', - ['__setCookie'], - [ - null, - ['uri' => 'http://www.zend.com', 'location' => 'http://www.zend.com'] - ] - ); + $clientMock = $this->getMockBuilder('SoapClient') + ->setMethods(['__setCookie']) + ->setConstructorArgs( + [ + null, + ['uri' => 'http://www.zend.com', 'location' => 'http://www.zend.com'] + ] + ) + ->getMock(); + $clientMock->expects($this->once()) ->method('__setCookie') ->with($fixtureCookieKey, $fixtureCookieValue); @@ -604,14 +607,15 @@ public function testSetCookieIsDelegatedToSoapClient() public function testSetSoapClient() { - $clientMock = $this->getMock( - 'SoapClient', - ['__setCookie'], - [ - null, - ['uri' => 'http://www.zend.com', 'location' => 'http://www.zend.com'] - ] - ); + $clientMock = $this->getMockBuilder('SoapClient') + ->setMethods(['__setCookie']) + ->setConstructorArgs( + [ + null, + ['uri' => 'http://www.zend.com', 'location' => 'http://www.zend.com'] + ] + ) + ->getMock(); $soap = new Client(); $soap->setSoapClient($clientMock); diff --git a/test/Server/DocumentLiteralWrapperTest.php b/test/Server/DocumentLiteralWrapperTest.php index 6059a94f..90e21e72 100644 --- a/test/Server/DocumentLiteralWrapperTest.php +++ b/test/Server/DocumentLiteralWrapperTest.php @@ -9,17 +9,16 @@ namespace ZendTest\Soap\Server; +use PHPUnit\Framework\TestCase; use Zend\Soap\Client\Local as SoapClient; use Zend\Soap\Server; use Zend\Soap\Server\DocumentLiteralWrapper; use ZendTest\Soap\TestAsset\MyCalculatorService; -class DocumentLiteralWrapperTest extends \PHPUnit_Framework_TestCase +class DocumentLiteralWrapperTest extends TestCase { const WSDL = '/_files/calculator.wsdl'; - private $client; - public function setUp() { ini_set("soap.wsdl_cache_enabled", 0); diff --git a/test/ServerTest.php b/test/ServerTest.php index 277ea7f0..6a45b718 100644 --- a/test/ServerTest.php +++ b/test/ServerTest.php @@ -9,10 +9,13 @@ namespace ZendTest\Soap; +use PHPUnit\Framework\TestCase; use Zend\Soap\AutoDiscover; +use Zend\Soap\Exception\InvalidArgumentException; +use Zend\Soap\Exception\RuntimeException; use Zend\Soap\Server; -class ServerTest extends \PHPUnit_Framework_TestCase +class ServerTest extends TestCase { public function setUp() { @@ -101,7 +104,8 @@ public function testEncoding() $server->setEncoding('ISO-8859-1'); $this->assertEquals('ISO-8859-1', $server->getEncoding()); - $this->setExpectedException('Zend\Soap\Exception\InvalidArgumentException', 'Invalid encoding specified'); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid encoding specified'); $server->setEncoding(['UTF-8']); } @@ -113,7 +117,8 @@ public function testSoapVersion() $server->setSoapVersion(SOAP_1_1); $this->assertEquals(SOAP_1_1, $server->getSoapVersion()); - $this->setExpectedException('Zend\Soap\Exception\InvalidArgumentException', 'Invalid soap version specified'); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid soap version specified'); $server->setSoapVersion('bogus'); } @@ -123,7 +128,8 @@ public function testValidateUrn() $this->assertTrue($server->validateUrn('http://framework.zend.com/')); $this->assertTrue($server->validateUrn('urn:soapHandler/GetOpt')); - $this->setExpectedException('Zend\Soap\Exception\InvalidArgumentException', 'Invalid URN'); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid URN'); $server->validateUrn('bogosity'); } @@ -135,7 +141,8 @@ public function testSetActor() $server->setActor('http://framework.zend.com/'); $this->assertEquals('http://framework.zend.com/', $server->getActor()); - $this->setExpectedException('Zend\Soap\Exception\InvalidArgumentException', 'Invalid URN'); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid URN'); $server->setActor('bogus'); } @@ -156,7 +163,8 @@ public function testSetUri() $server->setUri('http://framework.zend.com/'); $this->assertEquals('http://framework.zend.com/', $server->getUri()); - $this->setExpectedException('Zend\Soap\Exception\InvalidArgumentException', 'Invalid URN'); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid URN'); $server->setUri('bogus'); } @@ -185,7 +193,8 @@ public function testSetClassmapThrowsExceptionOnBogusStringParameter() { $server = new Server(); - $this->setExpectedException('Zend\Soap\Exception\InvalidArgumentException', 'Classmap must be an array'); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Classmap must be an array'); $server->setClassmap('bogus'); } @@ -193,7 +202,8 @@ public function testSetClassmapThrowsExceptionOnBogusArrayParameter() { $server = new Server(); - $this->setExpectedException('Zend\Soap\Exception\InvalidArgumentException', 'Invalid class in class map'); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid class in class map'); $server->setClassmap(['soapTypeName', 'bogusClassName']); } @@ -253,7 +263,8 @@ public function testAddBogusFunctionAsInteger() { $server = new Server(); - $this->setExpectedException('Zend\Soap\Exception\InvalidArgumentException', 'Invalid function specified'); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid function specified'); $server->addFunction(126); } @@ -261,7 +272,8 @@ public function testAddBogusFunctionsAsString() { $server = new Server(); - $this->setExpectedException('Zend\Soap\Exception\InvalidArgumentException', 'Invalid function specified'); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid function specified'); $server->addFunction('bogus_function'); } @@ -275,10 +287,8 @@ public function testAddBogusFunctionsAsArray() '\ZendTest\Soap\TestAsset\TestFunc6' ]; - $this->setExpectedException( - 'Zend\Soap\Exception\InvalidArgumentException', - 'One or more invalid functions specified in array' - ); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('One or more invalid functions specified in array'); $server->addFunction($functions); } @@ -319,10 +329,8 @@ public function testSetClassTwiceThrowsException() $server = new Server(); $server->setClass('\ZendTest\Soap\TestAsset\ServerTestClass'); - $this->setExpectedException( - 'Zend\Soap\Exception\InvalidArgumentException', - 'A class has already been registered with this soap server instance' - ); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('A class has already been registered with this soap server instance'); $server->setClass('\ZendTest\Soap\TestAsset\ServerTestClass'); } @@ -339,7 +347,8 @@ public function testSetBogusClassWithIntegerName() { $server = new Server(); - $this->setExpectedException('Zend\Soap\Exception\InvalidArgumentException', 'Invalid class argument (integer)'); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid class argument (integer)'); $server->setClass(465); } @@ -347,10 +356,8 @@ public function testSetBogusClassWithUnknownClassName() { $server = new Server(); - $this->setExpectedException( - 'Zend\Soap\Exception\InvalidArgumentException', - 'Class "Zend_Soap_Server_Test_BogusClass" does not exist' - ); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Class "Zend_Soap_Server_Test_BogusClass" does not exist'); $server->setClass('Zend_Soap_Server_Test_BogusClass'); } @@ -373,10 +380,8 @@ public function testSetObjectThrowsExceptionWithBadInput1() { $server = new Server(); - $this->setExpectedException( - 'Zend\Soap\Exception\InvalidArgumentException', - 'Invalid object argument (integer)' - ); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid object argument (integer)'); $server->setObject(465); } @@ -387,25 +392,12 @@ public function testSetObjectThrowsExceptionWithBadInput2() { $server = new Server(); - $this->setExpectedException( - 'Zend\Soap\Exception\InvalidArgumentException', - 'Invalid object argument (integer)' - ); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid object argument (integer)'); $int = 1; $server->setObject($int); } - /** - * @group ZF-4366 - */ - public function testSetObjectThrowsExceptionWithBadInput3() - { - $server = new Server(); - - //$this->setExpectedException('Zend\Soap\Exception\InvalidArgumentException', 'foo'); - $server->setObject(new TestAsset\ServerTestClass()); - } - public function testGetFunctions() { $server = new Server(); @@ -436,7 +428,7 @@ public function testGetFunctions() public function testGetFunctionsWithClassAttached() { $server = new Server(); - $server->setClass('\ZendTest\Soap\TestAsset\ServerTestClass'); + $server->setClass(TestAsset\ServerTestClass::class); $this->assertEquals( ['testFunc1', 'testFunc2', 'testFunc3', 'testFunc4', 'testFunc5'], @@ -471,10 +463,8 @@ public function testSetUnknownPersistenceStateThrowsException() { $server = new Server(); - $this->setExpectedException( - 'Zend\Soap\Exception\InvalidArgumentException', - 'Invalid persistence mode specified' - ); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid persistence mode specified'); $server->setPersistence('bogus'); } @@ -779,7 +769,7 @@ public function testFaultWithRegisteredException() $server = new Server(); $server->registerFaultException('\Zend\Soap\Exception\RuntimeException'); $server->registerFaultException('\Zend\Soap\Exception\InvalidArgumentException'); - $fault = $server->fault(new \Zend\Soap\Exception\RuntimeException('MyException')); + $fault = $server->fault(new RuntimeException('MyException')); $this->assertInstanceOf('SoapFault', $fault); $this->assertNotContains('Unknown error', $fault->getMessage()); $this->assertContains('MyException', $fault->getMessage()); @@ -851,7 +841,8 @@ public function testLoadFunctionsIsNotImplemented() { $server = new Server(); - $this->setExpectedException('Zend\Soap\Exception\RuntimeException', 'Unimplemented method'); + $this->expectException(RuntimeException::class); + $this->expectExceptionMessage('Unimplemented method'); $server->loadFunctions("bogus"); } diff --git a/test/Wsdl/ArrayOfTypeComplexStrategyTest.php b/test/Wsdl/ArrayOfTypeComplexStrategyTest.php index 55b7e387..8e2e0390 100644 --- a/test/Wsdl/ArrayOfTypeComplexStrategyTest.php +++ b/test/Wsdl/ArrayOfTypeComplexStrategyTest.php @@ -9,6 +9,7 @@ namespace ZendTest\Soap\Wsdl; +use Zend\Soap\Exception\InvalidArgumentException; use Zend\Soap\Wsdl; use Zend\Soap\Wsdl\ComplexTypeStrategy\ArrayOfTypeComplex; use ZendTest\Soap\WsdlTestHelper; @@ -24,17 +25,15 @@ public function setUp() public function testNestingObjectsDeepMakesNoSenseThrowingException() { - $this->setExpectedException( - 'Zend\Soap\Exception\InvalidArgumentException', - 'ArrayOfTypeComplex cannot return nested ArrayOfObject deeper than one level' - ); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('ArrayOfTypeComplex cannot return nested ArrayOfObject deeper than one level'); $this->wsdl->addComplexType('\ZendTest\Soap\TestAsset\ComplexTest[][]'); } public function testAddComplexTypeOfNonExistingClassThrowsException() { - $this->setExpectedException( - 'Zend\Soap\Exception\InvalidArgumentException', + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage( 'Cannot add a complex type \ZendTest\Soap\TestAsset\UnknownClass that is not an object or where class' ); $this->wsdl->addComplexType('\ZendTest\Soap\TestAsset\UnknownClass[]'); @@ -80,7 +79,7 @@ public function testArrayOfSimpleObject() 'Invalid array type reference.' ); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testThatOverridingStrategyIsReset() @@ -146,7 +145,7 @@ public function testArrayOfComplexObjects() ); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testArrayOfObjectWithObject() @@ -208,7 +207,7 @@ public function testArrayOfObjectWithObject() 'Invalid array type reference.' ); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -238,7 +237,7 @@ public function testAddingTypesMultipleTimesIsSavedOnlyOnce() $nodes = $this->xpath->query('//xsd:complexType[@name="ComplexTest"]'); $this->assertEquals(1, $nodes->length, 'Invalid complex type detected'); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -268,7 +267,7 @@ public function testAddingSingularThenArrayTypeIsRecognizedCorretly() $nodes = $this->xpath->query('//xsd:complexType[@name="ComplexTest"]'); $this->assertEquals(1, $nodes->length, 'Invalid complex type detected'); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -350,6 +349,6 @@ public function testArrayOfComplexNestedObjectsIsCoveredByStrategyAndAddsAllType 'Invalid array type reference.' ); - $this->testDocumentNodes(); + $this->documentNodesTest(); } } diff --git a/test/Wsdl/ArrayOfTypeSequenceStrategyTest.php b/test/Wsdl/ArrayOfTypeSequenceStrategyTest.php index d1dcdfa9..00cbe44e 100644 --- a/test/Wsdl/ArrayOfTypeSequenceStrategyTest.php +++ b/test/Wsdl/ArrayOfTypeSequenceStrategyTest.php @@ -9,6 +9,7 @@ namespace ZendTest\Soap\Wsdl; +use Zend\Soap\Exception\InvalidArgumentException; use ZendTest\Soap\WsdlTestHelper; class ArrayOfTypeSequenceStrategyTest extends WsdlTestHelper @@ -59,7 +60,7 @@ public function testFunctionReturningSimpleArrayOfBasicTypes($type, $arrayTypeNa 'Wrong complex type maxOccurs attribute value' ); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function dataProviderForFunctionReturningSimpleArrayOfBasicTypes() @@ -113,7 +114,7 @@ public function testNestedTypesDefinitions($stringDefinition, $definedTypeName, ); } - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -178,7 +179,7 @@ public function testAddComplexTypeObject() $this->assertEquals('var', $nodes->item(0)->getAttribute('name'), 'Invalid name attribute value'); $this->assertEquals('xsd:int', $nodes->item(0)->getAttribute('type'), 'Invalid type attribute value'); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testAddComplexTypeArrayOfObject() @@ -270,12 +271,13 @@ public function testAddComplexTypeArrayOfObject() ); } - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testAddComplexTypeOfNonExistingClassThrowsException() { - $this->setExpectedException('\Zend\Soap\Exception\InvalidArgumentException', 'Cannot add a complex type'); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Cannot add a complex type'); $this->wsdl->addComplexType('ZendTest\Soap\Wsdl\UnknownClass[]'); } } diff --git a/test/Wsdl/CompositeStrategyTest.php b/test/Wsdl/CompositeStrategyTest.php index 685ec7cf..bcdb441b 100644 --- a/test/Wsdl/CompositeStrategyTest.php +++ b/test/Wsdl/CompositeStrategyTest.php @@ -9,6 +9,7 @@ namespace ZendTest\Soap\Wsdl; +use Zend\Soap\Exception\InvalidArgumentException; use Zend\Soap\Wsdl\ComplexTypeStrategy; use Zend\Soap\Wsdl\ComplexTypeStrategy\AnyType; use Zend\Soap\Wsdl\ComplexTypeStrategy\Composite; @@ -60,10 +61,8 @@ public function testCompositeThrowsExceptionOnInvalidType() { $strategy = new ComplexTypeStrategy\Composite(); - $this->setExpectedException( - 'Zend\Soap\Exception\InvalidArgumentException', - 'Invalid type given to Composite Type Map' - ); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Invalid type given to Composite Type Map'); $strategy->connectTypeToStrategy([], 'strategy'); } @@ -72,10 +71,8 @@ public function testCompositeThrowsExceptionOnInvalidStrategy() $strategy = new ComplexTypeStrategy\Composite([], 'invalid'); $strategy->connectTypeToStrategy('Book', 'strategy'); - $this->setExpectedException( - 'Zend\Soap\Exception\InvalidArgumentException', - 'Strategy for Complex Type "Book" is not a valid strategy' - ); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Strategy for Complex Type "Book" is not a valid strategy'); $strategy->getStrategyOfType('Book'); } @@ -84,10 +81,8 @@ public function testCompositeThrowsExceptionOnInvalidStrategyPart2() $strategy = new ComplexTypeStrategy\Composite([], 'invalid'); $strategy->connectTypeToStrategy('Book', 'strategy'); - $this->setExpectedException( - 'Zend\Soap\Exception\InvalidArgumentException', - 'Default Strategy for Complex Types is not a valid strategy object' - ); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Default Strategy for Complex Types is not a valid strategy object'); $strategy->getStrategyOfType('Anything'); } @@ -109,14 +104,15 @@ public function testCompositeDelegatesAddingComplexTypesToSubStrategies() $this->assertEquals('tns:Cookie', $this->strategy->addComplexType('\ZendTest\Soap\TestAsset\Cookie')); $this->assertEquals('xsd:anyType', $this->strategy->addComplexType('\ZendTest\Soap\TestAsset\Anything')); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testCompositeRequiresContextForAddingComplexTypesOtherwiseThrowsException() { $strategy = new ComplexTypeStrategy\Composite(); - $this->setExpectedException('Zend\Soap\Exception\InvalidArgumentException', 'Cannot add complex type "Test"'); + $this->expectException(InvalidArgumentException::class); + $this->expectExceptionMessage('Cannot add complex type "Test"'); $strategy->addComplexType('Test'); } diff --git a/test/Wsdl/DefaultComplexTypeTest.php b/test/Wsdl/DefaultComplexTypeTest.php index 202b9055..2dce04ed 100644 --- a/test/Wsdl/DefaultComplexTypeTest.php +++ b/test/Wsdl/DefaultComplexTypeTest.php @@ -43,7 +43,7 @@ public function testOnlyPublicPropertiesAreDiscoveredByStrategy() $nodes = $this->xpath->query('//xsd:element[@name="'.(PublicPrivateProtected::PRIVATE_VAR_NAME).'"]'); $this->assertEquals(0, $nodes->length, 'Document should not contain private fields'); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testDoubleClassesAreDiscoveredByStrategy() @@ -54,6 +54,6 @@ public function testDoubleClassesAreDiscoveredByStrategy() $nodes = $this->xpath->query('//xsd:complexType[@name="WsdlTestClass"]'); $this->assertEquals(1, $nodes->length); - $this->testDocumentNodes(); + $this->documentNodesTest(); } } diff --git a/test/WsdlTest.php b/test/WsdlTest.php index 488c67b8..c0e62d88 100644 --- a/test/WsdlTest.php +++ b/test/WsdlTest.php @@ -36,7 +36,7 @@ public function testConstructor() $this->assertEquals($this->defaultServiceName, $this->dom->documentElement->getAttribute('name')); $this->assertEquals($this->defaultServiceUri, $this->dom->documentElement->getAttribute('targetNamespace')); - $this->testDocumentNodes(); + $this->documentNodesTest(); } /** @@ -52,7 +52,7 @@ public function testSetUriChangesDomDocumentWsdlStructureTnsAndTargetNamespaceAt $this->wsdl->setUri($uri); - $this->testDocumentNodes(); + $this->documentNodesTest(); $this->assertEquals($expectedUri, $this->dom->lookupNamespaceUri('tns')); $this->assertEquals($expectedUri, $this->dom->documentElement->getAttribute('targetNamespace')); @@ -68,7 +68,7 @@ public function testSetUriWithZendUriChangesDomDocumentWsdlStructureTnsAndTarget $expectedUri ) { $this->wsdl->setUri(new Uri($uri)); - $this->testDocumentNodes(); + $this->documentNodesTest(); $this->assertEquals($expectedUri, $this->dom->lookupNamespaceUri('tns')); $this->assertEquals($expectedUri, $this->dom->documentElement->getAttribute('targetNamespace')); @@ -84,7 +84,7 @@ public function testObjectConstructionWithDifferentURI($uri, $expectedUri) $wsdl = new Wsdl($this->defaultServiceName, $uri); $dom = $this->registerNamespaces($wsdl->toDomDocument(), $uri); - $this->testDocumentNodes(); + $this->documentNodesTest(); $this->assertEquals($expectedUri, $dom->lookupNamespaceUri('tns')); $this->assertEquals($expectedUri, $dom->documentElement->getAttribute('targetNamespace')); @@ -128,7 +128,7 @@ public function testAddMessage($parameters) $messageName = 'myMessage'; $this->wsdl->addMessage($messageName, $messageParts); - $this->testDocumentNodes(); + $this->documentNodesTest(); $messageNodes = $this->xpath->query('//wsdl:definitions/wsdl:message'); @@ -160,7 +160,7 @@ public function testAddComplexMessage($parameters) $messageName = 'myMessage'; $this->wsdl->addMessage($messageName, $messageParts); - $this->testDocumentNodes(); + $this->documentNodesTest(); $messageNodes = $this->xpath->query('//wsdl:definitions/wsdl:message'); @@ -192,7 +192,7 @@ public function testAddPortType() $portName = 'myPortType'; $this->wsdl->addPortType($portName); - $this->testDocumentNodes(); + $this->documentNodesTest(); $portTypeNodes = $this->xpath->query('//wsdl:definitions/wsdl:portType'); @@ -214,7 +214,7 @@ public function testAddPortOperation($operationName, $inputRequest = null, $outp $this->wsdl->addPortOperation($portType, $operationName, $inputRequest, $outputResponse, $fail); - $this->testDocumentNodes(); + $this->documentNodesTest(); $portTypeNodes = $this->xpath->query('//wsdl:definitions/wsdl:portType[@name="'.$portName.'"]'); $this->assertGreaterThan(0, $portTypeNodes->length, 'Missing portType node in definitions node.'); @@ -261,7 +261,7 @@ public function testAddBinding() { $this->wsdl->addBinding('MyServiceBinding', 'myPortType'); - $this->testDocumentNodes(); + $this->documentNodesTest(); $bindingNodes = $this->xpath->query('//wsdl:definitions/wsdl:binding'); @@ -321,7 +321,7 @@ public function testAddBindingOperation( $faultArray ); - $this->testDocumentNodes(); + $this->documentNodesTest(); $bindingNodes = $this->xpath->query('//wsdl:binding'); @@ -384,7 +384,7 @@ public function testAddSoapBinding($style) $this->wsdl->addSoapBinding($binding, $style); - $this->testDocumentNodes(); + $this->documentNodesTest(); $nodes = $this->xpath->query('//soap:binding'); @@ -410,7 +410,7 @@ public function testAddSoapOperation($operationUrl) $this->wsdl->addSoapOperation($binding, $operationUrl); - $this->testDocumentNodes(); + $this->documentNodesTest(); $node = $this->xpath->query('//soap:operation'); $this->assertGreaterThan(0, $node->length); @@ -435,7 +435,7 @@ public function testAddService($serviceUrl) $this->wsdl->addService('Service1', 'myPortType', 'MyServiceBinding', $serviceUrl); - $this->testDocumentNodes(); + $this->documentNodesTest(); $nodes = $this->xpath->query('//wsdl:service[@name="Service1"]/wsdl:port/soap:address'); $this->assertGreaterThan(0, $nodes->length); @@ -489,7 +489,7 @@ public function testAddSoapOperationWithAmpersandInUrl($actualUrl, $expectedUrl) $this->wsdl->addSoapOperation($binding, $actualUrl); - $this->testDocumentNodes(); + $this->documentNodesTest(); $nodes = $this->xpath->query('//wsdl:binding/soap:operation'); $this->assertGreaterThanOrEqual(1, $nodes->length); @@ -506,7 +506,7 @@ public function testAddServiceWithAmpersandInUrl($actualUrl, $expectedUrl) $this->wsdl->addService('Service1', 'myPortType', 'MyServiceBinding', $actualUrl); - $this->testDocumentNodes(); + $this->documentNodesTest(); $nodes = $this->xpath->query('//wsdl:port/soap:address'); $this->assertGreaterThanOrEqual(1, $nodes->length); @@ -536,7 +536,7 @@ public function testAddDocumentation() $doc = 'This is a description for Port Type node.'; $this->wsdl->addDocumentation($this->wsdl, $doc); - $this->testDocumentNodes(); + $this->documentNodesTest(); $nodes = $this->wsdl->toDomDocument()->childNodes; $this->assertEquals(1, $nodes->length); @@ -550,7 +550,7 @@ public function testAddDocumentationToSomeElmenet() $doc = 'This is a description for Port Type node.'; $this->wsdl->addDocumentation($portType, $doc); - $this->testDocumentNodes(); + $this->documentNodesTest(); $nodes = $this->xpath->query('//wsdl:portType[@name="myPortType"]/wsdl:documentation'); $this->assertEquals(1, $nodes->length); @@ -567,7 +567,7 @@ public function testAddDocumentationToSetInsertsBefore() $message = $this->wsdl->addMessage('myMessage', $messageParts); $this->wsdl->addDocumentation($message, "foo"); - $this->testDocumentNodes(); + $this->documentNodesTest(); $nodes = $this->xpath->query('//wsdl:message[@name="myMessage"]/*[1]'); $this->assertEquals('documentation', $nodes->item(0)->nodeName); @@ -615,7 +615,7 @@ public function checkXMLContent($content) $this->testConstructor(); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testGetType() @@ -674,7 +674,7 @@ public function testAddingSameComplexTypeMoreThanOnceIsIgnored() $types ); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testUsingSameComplexTypeTwiceLeadsToReuseOfDefinition() @@ -695,7 +695,7 @@ public function testUsingSameComplexTypeTwiceLeadsToReuseOfDefinition() $this->wsdl->getTypes() ); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testGetSchema() @@ -709,7 +709,7 @@ public function testAddComplexType() { $this->wsdl->addComplexType('\ZendTest\Soap\TestAsset\WsdlTestClass'); - $this->testDocumentNodes(); + $this->documentNodesTest(); $nodes = $this->xpath->query('//wsdl:types/xsd:schema/xsd:complexType/xsd:all/*'); @@ -727,7 +727,7 @@ public function testAddTypesFromDocument() $nodes = $this->xpath->query('//wsdl:types'); $this->assertGreaterThanOrEqual(1, $nodes->length); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testAddTypesFromNode() @@ -739,7 +739,7 @@ public function testAddTypesFromNode() $nodes = $this->xpath->query('//wsdl:types'); $this->assertGreaterThanOrEqual(1, $nodes->length); - $this->testDocumentNodes(); + $this->documentNodesTest(); } public function testTranslateTypeFromClassMap() @@ -803,7 +803,7 @@ public function testMultipleSequenceDefinitionsOfSameTypeWillBeRecognizedOnceByS $this->wsdl->addComplexType("string[]"); $this->wsdl->addComplexType("int[]"); - $this->testDocumentNodes(); + $this->documentNodesTest(); $nodes = $this->xpath->query('//wsdl:types/xsd:schema/xsd:complexType[@name="ArrayOfString"]'); $this->assertEquals(1, $nodes->length, "ArrayOfString should appear only once."); @@ -839,7 +839,7 @@ public function testAddElement() $newElementName = $this->wsdl->addElement($element); - $this->testDocumentNodes(); + $this->documentNodesTest(); $this->assertEquals('tns:'.$element['name'], $newElementName); diff --git a/test/WsdlTestHelper.php b/test/WsdlTestHelper.php index 0ee2ae20..56232b87 100644 --- a/test/WsdlTestHelper.php +++ b/test/WsdlTestHelper.php @@ -9,6 +9,7 @@ namespace ZendTest\Soap; +use PHPUnit\Framework\TestCase; use Zend\Soap\Wsdl; use Zend\Soap\Wsdl\ComplexTypeStrategy; use Zend\Soap\Wsdl\ComplexTypeStrategy\ComplexTypeStrategyInterface; @@ -19,7 +20,7 @@ * @group Zend_Soap * @group Zend_Soap_Wsdl **/ -class WsdlTestHelper extends \PHPUnit_Framework_TestCase +class WsdlTestHelper extends TestCase { /** * @var Wsdl @@ -92,7 +93,7 @@ public function registerNamespaces($obj, $documentNamespace = null) /** * @param \DOMElement $element */ - public function testDocumentNodes($element = null) + public function documentNodesTest($element = null) { if (!($this->wsdl instanceof Wsdl)) { return; @@ -108,7 +109,7 @@ public function testDocumentNodes($element = null) $node->namespaceURI, 'Document element: ' . $node->nodeName . ' has no valid namespace. Line: ' . $node->getLineNo() ); - $this->testDocumentNodes($node); + $this->documentNodesTest($node); } } }