From 6037b91e98a324eba9d642dd7fc5a02f5ecdd23a Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Sat, 22 Apr 2017 14:44:42 +0300 Subject: [PATCH 01/10] Update dependencies --- composer.json | 7 +- composer.lock | 588 ++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 455 insertions(+), 140 deletions(-) diff --git a/composer.json b/composer.json index c3f8b5e..0dd0f56 100644 --- a/composer.json +++ b/composer.json @@ -18,13 +18,14 @@ } ], "require": { - "php": ">=5.3.0", + "php": "^7", "composer/installers": "*", - "openbuildings/purchases": "^0.9.0", + "openbuildings/jam": "^0.5", + "openbuildings/purchases": "^0.9 | ^0.10", "openbuildings/shipping": "^0.10 | ^0.11" }, "require-dev": { - "openbuildings/kohana-test-bootsrap": "0.1.*" + "openbuildings/kohana-test-bootstrap": "^0.2" }, "autoload": { "psr-0": {"Openbuildings\\Promotions\\": "src/"} diff --git a/composer.lock b/composer.lock index acf0ef6..aff5199 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "d68cac2f13e8f76625b024f6036dcc98", - "content-hash": "8c0de91d921f577c9b51a2ba39a78298", + "content-hash": "fcf162259c11994f3d0d00782b5c43fb", "packages": [ { "name": "clippings/freezable", @@ -47,22 +46,25 @@ } ], "description": "Freeze values in objects", - "time": "2014-10-17 12:21:06" + "time": "2014-10-17T12:21:06+00:00" }, { "name": "composer/installers", - "version": "v1.0.21", + "version": "v1.2.0", "source": { "type": "git", "url": "https://github.com/composer/installers.git", - "reference": "d64e23fce42a4063d63262b19b8e7c0f3b5e4c45" + "reference": "d78064c68299743e0161004f2de3a0204e33b804" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/installers/zipball/d64e23fce42a4063d63262b19b8e7c0f3b5e4c45", - "reference": "d64e23fce42a4063d63262b19b8e7c0f3b5e4c45", + "url": "https://api.github.com/repos/composer/installers/zipball/d78064c68299743e0161004f2de3a0204e33b804", + "reference": "d78064c68299743e0161004f2de3a0204e33b804", "shasum": "" }, + "require": { + "composer-plugin-api": "^1.0" + }, "replace": { "roundcube/plugin-installer": "*", "shama/baton": "*" @@ -71,16 +73,16 @@ "composer/composer": "1.0.*@dev", "phpunit/phpunit": "4.1.*" }, - "type": "composer-installer", + "type": "composer-plugin", "extra": { - "class": "Composer\\Installers\\Installer", + "class": "Composer\\Installers\\Plugin", "branch-alias": { "dev-master": "1.0-dev" } }, "autoload": { - "psr-0": { - "Composer\\Installers\\": "src/" + "psr-4": { + "Composer\\Installers\\": "src/Composer/Installers" } }, "notification-url": "https://packagist.org/downloads/", @@ -95,28 +97,35 @@ } ], "description": "A multi-framework Composer library installer", - "homepage": "http://composer.github.com/installers/", + "homepage": "https://composer.github.io/installers/", "keywords": [ "Craft", "Dolibarr", "Hurad", + "ImageCMS", "MODX Evo", + "Mautic", "OXID", + "Plentymarkets", + "RadPHP", "SMF", "Thelia", "WolfCMS", "agl", "aimeos", "annotatecms", + "attogram", "bitrix", "cakephp", "chef", + "cockpit", "codeigniter", "concrete5", "croogo", "dokuwiki", "drupal", "elgg", + "expressionengine", "fuelphp", "grav", "installer", @@ -133,16 +142,18 @@ "piwik", "ppi", "puppet", + "reindex", "roundcube", "shopware", "silverstripe", "symfony", "typo3", "wordpress", + "yawik", "zend", "zikula" ], - "time": "2015-02-18 17:17:01" + "time": "2016-08-13T20:53:52+00:00" }, { "name": "desarrolla2/cache", @@ -193,7 +204,7 @@ "mysql", "redis" ], - "time": "2013-07-10 12:22:00" + "time": "2013-07-10T12:22:00+00:00" }, { "name": "guzzle/guzzle", @@ -289,39 +300,276 @@ "web service" ], "abandoned": "guzzlehttp/guzzle", - "time": "2015-03-18 18:23:50" + "time": "2015-03-18T18:23:50+00:00" + }, + { + "name": "kohana/auth", + "version": "v3.3.6", + "source": { + "type": "git", + "url": "https://github.com/kohana/auth.git", + "reference": "8cefbb2625508887f92e2c6e702bab8b608ae588" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/kohana/auth/zipball/8cefbb2625508887f92e2c6e702bab8b608ae588", + "reference": "8cefbb2625508887f92e2c6e702bab8b608ae588", + "shasum": "" + }, + "require": { + "composer/installers": "~1.0", + "kohana/core": ">=3.3", + "php": ">=5.3.3" + }, + "require-dev": { + "kohana/core": "3.3.*@dev", + "kohana/koharness": "*@dev", + "kohana/unittest": "3.3.*@dev" + }, + "type": "kohana-module", + "extra": { + "branch-alias": { + "dev-3.3/develop": "3.3.x-dev", + "dev-3.4/develop": "3.4.x-dev" + }, + "installer-paths": { + "vendor/{$vendor}/{$name}": [ + "type:kohana-module" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kohana Team", + "email": "team@kohanaframework.org", + "homepage": "http://kohanaframework.org/team", + "role": "developer" + } + ], + "description": "The official Kohana auth module", + "homepage": "http://kohanaframework.org", + "keywords": [ + "Authentication", + "framework", + "kohana" + ], + "time": "2016-03-24T11:12:43+00:00" + }, + { + "name": "kohana/core", + "version": "v3.3.6", + "source": { + "type": "git", + "url": "https://github.com/kohana/core.git", + "reference": "bdbe81afb5a09cee4269d2e2210a0d293265231a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/kohana/core/zipball/bdbe81afb5a09cee4269d2e2210a0d293265231a", + "reference": "bdbe81afb5a09cee4269d2e2210a0d293265231a", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "kohana/koharness": "*@dev", + "kohana/unittest": "3.3.*@dev" + }, + "suggest": { + "ext-curl": "*", + "ext-http": "*", + "ext-mcrypt": "*" + }, + "type": "library", + "extra": { + "installer-paths": { + "vendor/{$vendor}/{$name}": [ + "type:kohana-module" + ] + }, + "branch-alias": { + "dev-3.3/develop": "3.3.x-dev", + "dev-3.4/develop": "3.4.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kohana Team", + "email": "team@kohanaframework.org", + "homepage": "http://kohanaframework.org/team", + "role": "developer" + } + ], + "description": "Core system classes for the Kohana application framework", + "homepage": "http://kohanaframework.org", + "keywords": [ + "framework", + "kohana" + ], + "time": "2016-07-25T13:15:13+00:00" + }, + { + "name": "kohana/database", + "version": "v3.3.6", + "source": { + "type": "git", + "url": "https://github.com/kohana/database.git", + "reference": "3edf2fe2cc6deeab41acfff032f38f697f9ef6fc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/kohana/database/zipball/3edf2fe2cc6deeab41acfff032f38f697f9ef6fc", + "reference": "3edf2fe2cc6deeab41acfff032f38f697f9ef6fc", + "shasum": "" + }, + "require": { + "composer/installers": "~1.0", + "kohana/core": ">=3.3", + "php": ">=5.3.6" + }, + "require-dev": { + "kohana/core": "3.3.*@dev", + "kohana/koharness": "*@dev", + "kohana/unittest": "3.3.*@dev" + }, + "suggest": { + "ext-mysql": "*", + "ext-pdo": "*" + }, + "type": "kohana-module", + "extra": { + "branch-alias": { + "dev-3.3/develop": "3.3.x-dev", + "dev-3.4/develop": "3.4.x-dev" + }, + "installer-paths": { + "vendor/{$vendor}/{$name}": [ + "type:kohana-module" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kohana Team", + "email": "team@kohanaframework.org", + "homepage": "http://kohanaframework.org/team", + "role": "developer" + } + ], + "description": "The official Kohana module for database interactions, building queries, and prepared statements", + "homepage": "http://kohanaframework.org", + "keywords": [ + "database", + "framework", + "kohana" + ], + "time": "2016-03-23T17:12:30+00:00" + }, + { + "name": "kohana/image", + "version": "v3.3.6", + "source": { + "type": "git", + "url": "https://github.com/kohana/image.git", + "reference": "40f196dd9246a35988e17fdd211bd312687d14e8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/kohana/image/zipball/40f196dd9246a35988e17fdd211bd312687d14e8", + "reference": "40f196dd9246a35988e17fdd211bd312687d14e8", + "shasum": "" + }, + "require": { + "composer/installers": "~1.0", + "kohana/core": ">=3.3", + "php": ">=5.3.3" + }, + "require-dev": { + "kohana/core": "3.3.*@dev", + "kohana/koharness": "*@dev", + "kohana/unittest": "3.3.*@dev" + }, + "suggest": { + "ext-gd": "*" + }, + "type": "kohana-module", + "extra": { + "branch-alias": { + "dev-3.3/develop": "3.3.x-dev", + "dev-3.4/develop": "3.4.x-dev" + }, + "installer-paths": { + "vendor/{$vendor}/{$name}": [ + "type:kohana-module" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kohana Team", + "email": "team@kohanaframework.org", + "homepage": "http://kohanaframework.org/team", + "role": "developer" + } + ], + "description": "The official Kohana module for manipulating images", + "homepage": "http://kohanaframework.org", + "keywords": [ + "framework", + "image", + "kohana" + ], + "time": "2016-03-23T17:12:48+00:00" }, { "name": "omnipay/common", - "version": "v2.3.4", + "version": "2.5.2", "source": { "type": "git", "url": "https://github.com/thephpleague/omnipay-common.git", - "reference": "fcd5a606713d11536c89315a5ae02d965a737c21" + "reference": "54910f2ece6b1be64f5e53e2111dd1254d50ee49" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/omnipay-common/zipball/fcd5a606713d11536c89315a5ae02d965a737c21", - "reference": "fcd5a606713d11536c89315a5ae02d965a737c21", + "url": "https://api.github.com/repos/thephpleague/omnipay-common/zipball/54910f2ece6b1be64f5e53e2111dd1254d50ee49", + "reference": "54910f2ece6b1be64f5e53e2111dd1254d50ee49", "shasum": "" }, "require": { "guzzle/guzzle": "~3.9", "php": ">=5.3.2", - "symfony/http-foundation": "~2.1" + "symfony/http-foundation": "~2.1|~3.0" }, "require-dev": { - "omnipay/tests": "~2.0" + "omnipay/tests": "~2.0", + "squizlabs/php_codesniffer": "~1.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "2.5.x-dev" }, "gateways": [ "AuthorizeNet_AIM", "AuthorizeNet_SIM", - "Buckaroo", + "Buckaroo_CreditCard", "Buckaroo_Ideal", "Buckaroo_PayPal", "CardSave", @@ -351,26 +599,7 @@ "TargetPay_Directebanking", "TargetPay_Ideal", "TargetPay_Mrcash", - "TwoCheckout", - "WorldPay", - "Alipay Bank", - "AliPay Dual Func", - "Alipay Express", - "Alipay Mobile Express", - "Alipay Secured", - "Alipay Wap Express", - "Cybersource", - "DataCash", - "Ecopayz", - "Neteller", - "Pacnet", - "PaymentSense", - "Realex Remote", - "SecPay (PayPoint.net)", - "Sisow", - "Skrill", - "YandexMoney", - "YandexMoneyIndividual" + "WorldPay" ] }, "autoload": { @@ -405,7 +634,7 @@ "payment", "purchase" ], - "time": "2015-03-30 14:34:46" + "time": "2016-11-07T06:10:23+00:00" }, { "name": "openbuildings/flex-storage", @@ -443,30 +672,36 @@ } ], "description": "Flexible storage provider for files (rackspace, aws, ftp, local)", - "time": "2014-07-08 12:07:06" + "time": "2014-07-08T12:07:06+00:00" }, { "name": "openbuildings/jam", - "version": "0.5.8", + "version": "0.5.15", "source": { "type": "git", "url": "https://github.com/OpenBuildings/jam.git", - "reference": "9570f3045c0f3ca9ba27d10f4262c57fa0972426" + "reference": "87e7a519fc59e7fd71ac3bb6102f179a9197f842" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/OpenBuildings/jam/zipball/9570f3045c0f3ca9ba27d10f4262c57fa0972426", - "reference": "9570f3045c0f3ca9ba27d10f4262c57fa0972426", + "url": "https://api.github.com/repos/OpenBuildings/jam/zipball/87e7a519fc59e7fd71ac3bb6102f179a9197f842", + "reference": "87e7a519fc59e7fd71ac3bb6102f179a9197f842", "shasum": "" }, "require": { "composer/installers": "*", - "openbuildings/flex-storage": "0.1.*", + "kohana/core": "^3.3.0", + "kohana/database": "^3.3.0", + "kohana/image": "^3.3.0", + "openbuildings/flex-storage": "^0.1.3", "php": ">=5.3.0" }, "require-dev": { - "openbuildings/kohana-test-bootsrap": "0.1.*", - "phpunit/phpunit-dom-assertions": "1.0.*@dev" + "openbuildings/kohana-test-bootstrap": "^0.2", + "phpunit/phpunit": "~4.0.0", + "phpunit/phpunit-dom-assertions": "1.0.*@dev", + "symfony/css-selector": ">=2.3", + "symfony/dom-crawler": ">=2.3" }, "suggest": { "openbuildings/jam-auth": "A Kohana Auth implementation for Jam, with services", @@ -496,30 +731,34 @@ "upload", "validation" ], - "time": "2015-07-17 13:21:45" + "time": "2017-01-19T22:39:39+00:00" }, { "name": "openbuildings/jam-auth", - "version": "0.4.0", + "version": "0.4.3", "source": { "type": "git", "url": "https://github.com/OpenBuildings/jam-auth.git", - "reference": "0d84564c6c9a0536d2f75d7dd4fbf405d88ec7d0" + "reference": "51798c74fb97892f6a2961e18f9942a5deb86513" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/OpenBuildings/jam-auth/zipball/0d84564c6c9a0536d2f75d7dd4fbf405d88ec7d0", - "reference": "0d84564c6c9a0536d2f75d7dd4fbf405d88ec7d0", + "url": "https://api.github.com/repos/OpenBuildings/jam-auth/zipball/51798c74fb97892f6a2961e18f9942a5deb86513", + "reference": "51798c74fb97892f6a2961e18f9942a5deb86513", "shasum": "" }, "require": { "composer/installers": "*", - "openbuildings/jam": "^0.5.0", - "php": ">=5.3.0" + "kohana/auth": "^3.3.0", + "kohana/core": "^3.3.0", + "openbuildings/jam": "^0.5.13", + "php": ">=5.4.0" }, "require-dev": { "facebook/php-sdk-v4": "^5.0", - "openbuildings/kohana-test-bootsrap": "^0.1.2" + "kohana/database": "^3.3.0", + "openbuildings/kohana-test-bootstrap": "^0.2", + "phpunit/phpunit": ">=4.0,<6.0" }, "type": "kohana-module", "notification-url": "https://packagist.org/downloads/", @@ -543,29 +782,31 @@ "kohana", "login" ], - "time": "2015-09-28 09:11:25" + "time": "2016-08-16T10:33:41+00:00" }, { "name": "openbuildings/jam-closuretable", - "version": "0.1.2", + "version": "0.1.3", "source": { "type": "git", "url": "https://github.com/OpenBuildings/jam-closuretable.git", - "reference": "9cefdc810e6a1e3dbc3322780394102b84e65918" + "reference": "9f269bb930d4f5f04665891830ab5097d2cecf12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/OpenBuildings/jam-closuretable/zipball/9cefdc810e6a1e3dbc3322780394102b84e65918", - "reference": "9cefdc810e6a1e3dbc3322780394102b84e65918", + "url": "https://api.github.com/repos/OpenBuildings/jam-closuretable/zipball/9f269bb930d4f5f04665891830ab5097d2cecf12", + "reference": "9f269bb930d4f5f04665891830ab5097d2cecf12", "shasum": "" }, "require": { "composer/installers": "*", - "openbuildings/jam": "~0.5.0", + "kohana/core": "^3.3", "php": ">=5.3.0" }, "require-dev": { - "openbuildings/kohana-test-bootsrap": "0.1.*" + "openbuildings/jam": "^0.5.13", + "openbuildings/kohana-test-bootstrap": "^0.2", + "phpunit/phpunit": "^4.0, <4.5" }, "type": "kohana-module", "notification-url": "https://packagist.org/downloads/", @@ -589,7 +830,7 @@ "structure", "tree" ], - "time": "2015-02-09 16:09:16" + "time": "2016-09-17T23:03:59+00:00" }, { "name": "openbuildings/jam-locations", @@ -637,30 +878,31 @@ "kohana", "location" ], - "time": "2014-04-16 08:27:51" + "time": "2014-04-16T08:27:51+00:00" }, { "name": "openbuildings/jam-monetary", - "version": "0.1.19", + "version": "0.1.21", "source": { "type": "git", "url": "https://github.com/OpenBuildings/jam-monetary.git", - "reference": "b431213561995a67c8a08f2fcf543db9d2585311" + "reference": "df57dad08f8dc5771a50f4c2c2e52485434b3851" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/OpenBuildings/jam-monetary/zipball/b431213561995a67c8a08f2fcf543db9d2585311", - "reference": "b431213561995a67c8a08f2fcf543db9d2585311", + "url": "https://api.github.com/repos/OpenBuildings/jam-monetary/zipball/df57dad08f8dc5771a50f4c2c2e52485434b3851", + "reference": "df57dad08f8dc5771a50f4c2c2e52485434b3851", "shasum": "" }, "require": { "composer/installers": "*", - "openbuildings/jam": "~0.5.0", "openbuildings/monetary": "~0.4.1", "php": ">=5.3.0" }, "require-dev": { - "openbuildings/kohana-test-bootsrap": "0.1.*" + "openbuildings/jam": "^0.5.13", + "openbuildings/kohana-test-bootstrap": "^0.2.0", + "phpunit/phpunit": "^4.0, <4.5" }, "type": "kohana-module", "notification-url": "https://packagist.org/downloads/", @@ -684,7 +926,7 @@ "money", "price" ], - "time": "2015-02-09 16:48:03" + "time": "2016-09-18T08:45:53+00:00" }, { "name": "openbuildings/monetary", @@ -749,37 +991,40 @@ "money", "yahoo" ], - "time": "2013-10-28 11:21:15" + "time": "2013-10-28T11:21:15+00:00" }, { "name": "openbuildings/purchases", - "version": "0.9.0", + "version": "0.10.0", "source": { "type": "git", "url": "https://github.com/OpenBuildings/purchases.git", - "reference": "9a3770e15676481df442a9d14f67a6d8dad1129a" + "reference": "3e79e81348c7602c8e828fb58942ad73ed4bc035" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/OpenBuildings/purchases/zipball/9a3770e15676481df442a9d14f67a6d8dad1129a", - "reference": "9a3770e15676481df442a9d14f67a6d8dad1129a", + "url": "https://api.github.com/repos/OpenBuildings/purchases/zipball/3e79e81348c7602c8e828fb58942ad73ed4bc035", + "reference": "3e79e81348c7602c8e828fb58942ad73ed4bc035", "shasum": "" }, "require": { - "clippings/freezable": "0.2.*", + "clippings/freezable": "^0.2", "composer/installers": "*", - "omnipay/common": "~2.0", - "openbuildings/jam": "~0.5.0", - "openbuildings/jam-auth": "^0.4.0", - "openbuildings/jam-locations": "0.1.*", - "openbuildings/jam-monetary": "~0.1.19", - "php": ">=5.3.0" + "kohana/core": "^3.3", + "kohana/database": "^3.3.4", + "omnipay/common": "^2", + "openbuildings/jam": "^0.5", + "openbuildings/jam-auth": "^0.4", + "openbuildings/jam-locations": "^0.1", + "openbuildings/jam-monetary": "^0.1.19", + "php": "^7" }, "require-dev": { - "omnipay/dummy": "~2.0", - "openbuildings/environment-backup": "0.1.*", - "openbuildings/kohana-test-bootsrap": "0.1.*", - "openbuildings/phpunit-spiderling": "0.1.*" + "omnipay/dummy": "^2", + "openbuildings/environment-backup": "^0.1", + "openbuildings/kohana-test-bootstrap": "^0.2", + "openbuildings/phpunit-spiderling": "^0.2", + "phpunit/phpunit": "^6" }, "suggest": { "openbuildings/promotions": "Extends purchases functionality with promotions and gift cards", @@ -817,32 +1062,34 @@ "purchase", "store" ], - "time": "2015-09-29 09:48:56" + "time": "2017-04-22T11:28:49+00:00" }, { "name": "openbuildings/shipping", - "version": "0.11.1", + "version": "0.11.4", "source": { "type": "git", "url": "https://github.com/OpenBuildings/shipping.git", - "reference": "d8003e33d8bea7a0d63648da00eab132b319821e" + "reference": "c6a9c91f029d64f4bc16e17b599069b40a32ae07" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/OpenBuildings/shipping/zipball/d8003e33d8bea7a0d63648da00eab132b319821e", - "reference": "d8003e33d8bea7a0d63648da00eab132b319821e", + "url": "https://api.github.com/repos/OpenBuildings/shipping/zipball/c6a9c91f029d64f4bc16e17b599069b40a32ae07", + "reference": "c6a9c91f029d64f4bc16e17b599069b40a32ae07", "shasum": "" }, "require": { "clippings/freezable": "0.2.*", "composer/installers": "*", - "openbuildings/jam": "~0.5.5", - "openbuildings/purchases": "^0.9.0", - "php": ">=5.3.0" + "openbuildings/jam": "^0.5.13", + "openbuildings/purchases": "^0.9 | ^0.10", + "php": "^7" }, "require-dev": { "openbuildings/environment-backup": "0.1.*", - "openbuildings/kohana-test-bootsrap": "0.1.*" + "openbuildings/jam-auth": "^0.4", + "openbuildings/kohana-test-bootstrap": "^0.2.0", + "phpunit/phpunit": "^6" }, "type": "kohana-module", "notification-url": "https://packagist.org/downloads/", @@ -866,7 +1113,7 @@ "purchase", "shipping" ], - "time": "2016-11-10 11:42:50" + "time": "2017-04-22T11:35:14+00:00" }, { "name": "rackspace/php-opencloud", @@ -912,20 +1159,20 @@ "cloudfiles", "opencloud" ], - "time": "2013-08-01 16:12:19" + "time": "2013-08-01T16:12:19+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v2.7.5", + "version": "v2.8.19", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "ae4dcc2a8d3de98bd794167a3ccda1311597c5d9" + "reference": "88b65f0ac25355090e524aba4ceb066025df8bd2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/ae4dcc2a8d3de98bd794167a3ccda1311597c5d9", - "reference": "ae4dcc2a8d3de98bd794167a3ccda1311597c5d9", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/88b65f0ac25355090e524aba4ceb066025df8bd2", + "reference": "88b65f0ac25355090e524aba4ceb066025df8bd2", "shasum": "" }, "require": { @@ -933,11 +1180,10 @@ }, "require-dev": { "psr/log": "~1.0", - "symfony/config": "~2.0,>=2.0.5", - "symfony/dependency-injection": "~2.6", - "symfony/expression-language": "~2.6", - "symfony/phpunit-bridge": "~2.7", - "symfony/stopwatch": "~2.3" + "symfony/config": "^2.0.5|~3.0.0", + "symfony/dependency-injection": "~2.6|~3.0.0", + "symfony/expression-language": "~2.6|~3.0.0", + "symfony/stopwatch": "~2.3|~3.0.0" }, "suggest": { "symfony/dependency-injection": "", @@ -946,13 +1192,16 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "2.8-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\EventDispatcher\\": "" - } + }, + "exclude-from-classmap": [ + "/Tests/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -970,41 +1219,41 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2015-09-22 13:49:29" + "time": "2017-04-03T20:37:06+00:00" }, { "name": "symfony/http-foundation", - "version": "v2.7.5", + "version": "v3.2.7", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "e1509119f164a0d0a940d7d924d693a7a28a5470" + "reference": "cb0b6418f588952c9290b3df4ca650f1b7ab570a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/e1509119f164a0d0a940d7d924d693a7a28a5470", - "reference": "e1509119f164a0d0a940d7d924d693a7a28a5470", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/cb0b6418f588952c9290b3df4ca650f1b7ab570a", + "reference": "cb0b6418f588952c9290b3df4ca650f1b7ab570a", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.5.9", + "symfony/polyfill-mbstring": "~1.1" }, "require-dev": { - "symfony/expression-language": "~2.4", - "symfony/phpunit-bridge": "~2.7" + "symfony/expression-language": "~2.8|~3.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7-dev" + "dev-master": "3.2-dev" } }, "autoload": { "psr-4": { "Symfony\\Component\\HttpFoundation\\": "" }, - "classmap": [ - "Resources/stubs" + "exclude-from-classmap": [ + "/Tests/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -1023,24 +1272,86 @@ ], "description": "Symfony HttpFoundation Component", "homepage": "https://symfony.com", - "time": "2015-09-22 13:49:29" + "time": "2017-04-04T15:30:56+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/e79d363049d1c2128f133a2667e4f4190904f7f4", + "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "time": "2016-11-14T01:06:16+00:00" } ], "packages-dev": [ { - "name": "openbuildings/kohana-test-bootsrap", - "version": "0.1.2", + "name": "openbuildings/kohana-test-bootstrap", + "version": "0.2.0", "source": { "type": "git", "url": "https://github.com/OpenBuildings/kohana-test-bootstrap.git", - "reference": "57c9cae9bd97edbe58d1c41c35c499c7d54f4030" + "reference": "83b9e254f385b907c859b8332e4396b151a7e80e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/OpenBuildings/kohana-test-bootstrap/zipball/57c9cae9bd97edbe58d1c41c35c499c7d54f4030", - "reference": "57c9cae9bd97edbe58d1c41c35c499c7d54f4030", + "url": "https://api.github.com/repos/OpenBuildings/kohana-test-bootstrap/zipball/83b9e254f385b907c859b8332e4396b151a7e80e", + "reference": "83b9e254f385b907c859b8332e4396b151a7e80e", "shasum": "" }, + "require": { + "kohana/core": "^3.3" + }, "type": "library", "autoload": { "files": [ @@ -1054,14 +1365,17 @@ "authors": [ { "name": "Ivan Kerin", - "email": "ivan@openbuildings.com", - "homepage": "https://github.com/OpenBuildings/jam", + "email": "ikerin@gmail.com", "role": "Author" + }, + { + "name": "Haralan Dobrev", + "email": "hkdobrev@gmail.com", + "role": "Maintainer" } ], - "description": "Kohana core classes repackaged with composer, used to test modules", - "abandoned": "openbuildings/kohana-test-bootstrap", - "time": "2013-10-01 08:57:54" + "description": "Helper package for testing Kohana modules", + "time": "2016-07-28T14:07:23+00:00" } ], "aliases": [], @@ -1070,7 +1384,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=5.3.0" + "php": "^7" }, "platform-dev": [] } From ad6a9db8769fd5372b6d962b807d415c1be77cea Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Sat, 22 Apr 2017 14:45:13 +0300 Subject: [PATCH 02/10] Remove wrong autoload configuration --- composer.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/composer.json b/composer.json index 0dd0f56..824e7f8 100644 --- a/composer.json +++ b/composer.json @@ -26,8 +26,5 @@ }, "require-dev": { "openbuildings/kohana-test-bootstrap": "^0.2" - }, - "autoload": { - "psr-0": {"Openbuildings\\Promotions\\": "src/"} } } From 532e752cdca5f4ba4a98ddf0afeec1e2f4fdfa4a Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Sat, 22 Apr 2017 14:46:51 +0300 Subject: [PATCH 03/10] Use Composer with a classmap autoloader to tests/classes --- composer.json | 3 +++ tests/bootstrap.php | 10 ---------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 824e7f8..b673551 100644 --- a/composer.json +++ b/composer.json @@ -26,5 +26,8 @@ }, "require-dev": { "openbuildings/kohana-test-bootstrap": "^0.2" + }, + "autoload-dev": { + "classmap": ["tests/classes"] } } diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 237f719..7c106e2 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,15 +1,5 @@ Date: Sat, 22 Apr 2017 14:48:13 +0300 Subject: [PATCH 04/10] Update module configuration in tests --- tests/bootstrap.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 7c106e2..992e945 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -4,12 +4,10 @@ Kohana::modules(array( 'database' => MODPATH.'database', - 'auth' => MODPATH.'auth', - 'jam' => __DIR__.'/../modules/jam', - 'jam-auth' => __DIR__.'/../modules/jam-auth', - 'jam-monetary' => __DIR__.'/../modules/jam-monetary', - 'shipping' => __DIR__.'/../modules/shipping', - 'purchases' => __DIR__.'/../modules/purchases', + 'jam' => MODPATH.'jam', + 'jam-monetary' => MODPATH.'jam-monetary', + 'shipping' => MODPATH.'shipping', + 'purchases' => MODPATH.'purchases', 'promotions' => __DIR__.'/..', )); From c4c5d4c3c59dd0d56cb201ddcfe6983e6fdf2dc3 Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Sat, 22 Apr 2017 14:49:29 +0300 Subject: [PATCH 05/10] Add implicit dependencies explicitly as they are explicitly used --- composer.json | 6 ++++-- composer.lock | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index b673551..3a40dc3 100644 --- a/composer.json +++ b/composer.json @@ -22,10 +22,12 @@ "composer/installers": "*", "openbuildings/jam": "^0.5", "openbuildings/purchases": "^0.9 | ^0.10", - "openbuildings/shipping": "^0.10 | ^0.11" + "openbuildings/shipping": "^0.10 | ^0.11", + "openbuildings/jam-monetary": "^0.1.21" }, "require-dev": { - "openbuildings/kohana-test-bootstrap": "^0.2" + "openbuildings/kohana-test-bootstrap": "^0.2", + "kohana/auth": "^3.3" }, "autoload-dev": { "classmap": ["tests/classes"] diff --git a/composer.lock b/composer.lock index aff5199..8b2780c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "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": "fcf162259c11994f3d0d00782b5c43fb", + "content-hash": "7509aa0ccf86a9e607589bb845770ac5", "packages": [ { "name": "clippings/freezable", From 53c3eb0d6baa5b3b1f1299d5b5f721f6384bed86 Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Sat, 22 Apr 2017 14:52:21 +0300 Subject: [PATCH 06/10] Add auth modules needed for tests --- composer.json | 3 ++- composer.lock | 2 +- tests/bootstrap.php | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 3a40dc3..e64953c 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,8 @@ }, "require-dev": { "openbuildings/kohana-test-bootstrap": "^0.2", - "kohana/auth": "^3.3" + "kohana/auth": "^3.3", + "openbuildings/jam-auth": "^0.4.3" }, "autoload-dev": { "classmap": ["tests/classes"] diff --git a/composer.lock b/composer.lock index 8b2780c..ba2bf8f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "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": "7509aa0ccf86a9e607589bb845770ac5", + "content-hash": "ce6aab954da2b191ccf603826176b03a", "packages": [ { "name": "clippings/freezable", diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 992e945..9cc8a4c 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -4,8 +4,10 @@ Kohana::modules(array( 'database' => MODPATH.'database', + 'auth' => MODPATH.'auth', 'jam' => MODPATH.'jam', 'jam-monetary' => MODPATH.'jam-monetary', + 'jam-auth' => MODPATH.'jam-auth', 'shipping' => MODPATH.'shipping', 'purchases' => MODPATH.'purchases', 'promotions' => __DIR__.'/..', From 80e0df9046bab60b59cb9132693b976f5780a4a6 Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Sat, 22 Apr 2017 14:57:44 +0300 Subject: [PATCH 07/10] Update to locally installed PHPUnit 6 --- .travis.yml | 2 +- composer.json | 3 +- composer.lock | 1451 ++++++++++++++++- tests/classes/Testcase/Promotions.php | 2 +- .../Promotable/Brand/PurchaseTest.php | 9 +- .../Jam/Validator/Rule/PromocodeTest.php | 5 +- .../Validator/Rule/Purchase/PromocodeTest.php | 10 +- tests/tests/Model/Promo/CodeTest.php | 5 +- .../Promotion/Promocode/GitfcardTest.php | 23 +- .../Model/Promotion/Promocode/PercentTest.php | 5 +- tests/tests/Model/Promotion/PromocodeTest.php | 10 +- tests/tests/Model/PromotionTest.php | 9 +- .../Model/Purchase/Item/PromotionTest.php | 15 +- 13 files changed, 1512 insertions(+), 37 deletions(-) diff --git a/.travis.yml b/.travis.yml index e2d1096..e5e4600 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ before_script: - mysql --default-character-set=utf8 OpenBuildings/promotions < tests/test_data/structure.sql script: - - phpunit --coverage-clover build/logs/clover.xml + - vendor/bin/phpunit --coverage-clover build/logs/clover.xml after_script: - wget https://scrutinizer-ci.com/ocular.phar diff --git a/composer.json b/composer.json index e64953c..9dc3173 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,8 @@ "require-dev": { "openbuildings/kohana-test-bootstrap": "^0.2", "kohana/auth": "^3.3", - "openbuildings/jam-auth": "^0.4.3" + "openbuildings/jam-auth": "^0.4.3", + "phpunit/phpunit": "^6.1" }, "autoload-dev": { "classmap": ["tests/classes"] diff --git a/composer.lock b/composer.lock index ba2bf8f..5938b9e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "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": "ce6aab954da2b191ccf603826176b03a", + "content-hash": "0c90f3e45c700c918d493ac5a08f3aad", "packages": [ { "name": "clippings/freezable", @@ -1335,6 +1335,102 @@ } ], "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": "openbuildings/kohana-test-bootstrap", "version": "0.2.0", @@ -1376,6 +1472,1359 @@ ], "description": "Helper package for testing Kohana modules", "time": "2016-07-28T14:07:23+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.1.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/8331b5efe816ae05461b7ca1e721c01b46bafb3e", + "reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e", + "shasum": "" + }, + "require": { + "php": ">=5.5", + "phpdocumentor/reflection-common": "^1.0@dev", + "phpdocumentor/type-resolver": "^0.2.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": "2016-09-30T07:12:33+00:00" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "0.2.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb", + "reference": "e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb", + "shasum": "" + }, + "require": { + "php": ">=5.5", + "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": "2016-11-25T06:54:22+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.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "dc421f9ca5082a0c0cb04afb171c765f79add85b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/dc421f9ca5082a0c0cb04afb171c765f79add85b", + "reference": "dc421f9ca5082a0c0cb04afb171c765f79add85b", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", + "php": "^7.0", + "phpunit/php-file-iterator": "^1.3", + "phpunit/php-text-template": "^1.2", + "phpunit/php-token-stream": "^1.4.11 || ^2.0", + "sebastian/code-unit-reverse-lookup": "^1.0", + "sebastian/environment": "^3.0", + "sebastian/version": "^2.0", + "theseer/tokenizer": "^1.1" + }, + "require-dev": { + "ext-xdebug": "^2.5", + "phpunit/phpunit": "^6.0" + }, + "suggest": { + "ext-xdebug": "^2.5.3" + }, + "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-04-21T08:03:57+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": "1.4.11", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/e03f8f67534427a787e21a385a67ec3ca6978ea7", + "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-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-02-27T10:12:30+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "6.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "9fbc261d90eda9e7ef9f7441d32997270f8e2019" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/9fbc261d90eda9e7ef9f7441d32997270f8e2019", + "reference": "9fbc261d90eda9e7ef9f7441d32997270f8e2019", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "myclabs/deep-copy": "^1.3", + "phar-io/manifest": "^1.0.1", + "phar-io/version": "^1.0", + "php": "^7.0", + "phpspec/prophecy": "^1.7", + "phpunit/php-code-coverage": "^5.2", + "phpunit/php-file-iterator": "^1.4", + "phpunit/php-text-template": "^1.2", + "phpunit/php-timer": "^1.0.6", + "phpunit/phpunit-mock-objects": "^4.0", + "sebastian/comparator": "^2.0", + "sebastian/diff": "^1.2", + "sebastian/environment": "^3.0", + "sebastian/exporter": "^3.1", + "sebastian/global-state": "^1.1 || ^2.0", + "sebastian/object-enumerator": "^3.0.2", + "sebastian/resource-operations": "^1.0", + "sebastian/version": "^2.0" + }, + "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.1.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-04-21T08:02:24+00:00" + }, + { + "name": "phpunit/phpunit-mock-objects", + "version": "4.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", + "reference": "eabce450df194817a7d7e27e19013569a903a2bf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/eabce450df194817a7d7e27e19013569a903a2bf", + "reference": "eabce450df194817a7d7e27e19013569a903a2bf", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": "^7.0", + "phpunit/php-text-template": "^1.2", + "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-03-03T06:30:20+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.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "20f84f468cb67efee293246e6a09619b891f55f0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/20f84f468cb67efee293246e6a09619b891f55f0", + "reference": "20f84f468cb67efee293246e6a09619b891f55f0", + "shasum": "" + }, + "require": { + "php": "^7.0", + "sebastian/diff": "^1.2", + "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-03-03T06:26:08+00:00" + }, + { + "name": "sebastian/diff", + "version": "1.4.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e", + "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-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": "2015-12-08T07:14:41+00:00" + }, + { + "name": "sebastian/environment", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "11e7710b7724d42c62249b0e9d3030240398949d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/11e7710b7724d42c62249b0e9d3030240398949d", + "reference": "11e7710b7724d42c62249b0e9d3030240398949d", + "shasum": "" + }, + "require": { + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.1" + }, + "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": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "time": "2017-04-21T14:40:32+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": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "time": "2015-10-12T03:26:01+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "31dd3379d16446c5d86dec32ab1ad1f378581ad8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/31dd3379d16446c5d86dec32ab1ad1f378581ad8", + "reference": "31dd3379d16446c5d86dec32ab1ad1f378581ad8", + "shasum": "" + }, + "require": { + "php": "^7.0", + "sebastian/object-reflector": "^1.0", + "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-03-12T15:17:29+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": "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" } ], "aliases": [], diff --git a/tests/classes/Testcase/Promotions.php b/tests/classes/Testcase/Promotions.php index 6a56fe9..993f96e 100644 --- a/tests/classes/Testcase/Promotions.php +++ b/tests/classes/Testcase/Promotions.php @@ -8,7 +8,7 @@ * @author Yasen Yanev * @copyright (c) 2011-2013 Despark Ltd. */ -abstract class Testcase_Promotions extends PHPUnit_Framework_TestCase { +abstract class Testcase_Promotions extends \PHPUnit\Framework\TestCase { public function setUp() { diff --git a/tests/tests/Jam/Behavior/Promotable/Brand/PurchaseTest.php b/tests/tests/Jam/Behavior/Promotable/Brand/PurchaseTest.php index bc94bb3..e081f90 100644 --- a/tests/tests/Jam/Behavior/Promotable/Brand/PurchaseTest.php +++ b/tests/tests/Jam/Behavior/Promotable/Brand/PurchaseTest.php @@ -34,7 +34,10 @@ public function test_update_promotion_items() { $brand_purchase = Jam::build('brand_purchase'); - $promotion = $this->getMock('Model_Promotion', array('update_brand_purchase_items', 'applies_to'), array('promotion')); + $promotion = $this->getMockBuilder('Model_Promotion') + ->setMethods(array('update_brand_purchase_items', 'applies_to')) + ->setConstructorArgs(array('promotion')) + ->getMock(); $promotion ->expects($this->at(1)) @@ -51,7 +54,9 @@ public function test_update_promotion_items() ->method('applies_to') ->will($this->onConsecutiveCalls(TRUE, FALSE)); - $behavior = $this->getMock('Jam_Behavior_Promotable_Brand_Purchase', array('available_promotions')); + $behavior = $this->getMockBuilder('Jam_Behavior_Promotable_Brand_Purchase') + ->setMethods(array('available_promotions')) + ->getMock(); $behavior ->expects($this->once()) diff --git a/tests/tests/Jam/Validator/Rule/PromocodeTest.php b/tests/tests/Jam/Validator/Rule/PromocodeTest.php index bf78c70..e81801a 100644 --- a/tests/tests/Jam/Validator/Rule/PromocodeTest.php +++ b/tests/tests/Jam/Validator/Rule/PromocodeTest.php @@ -55,7 +55,10 @@ public function test_validate() 'expires_at' => date('Y-m-d H:i:s', strtotime('-1 month')), )); - $validator_rule = $this->getMock('Jam_Validator_Rule_Promocode', array('valid_promo_code'), array(array())); + $validator_rule = $this->getMockBuilder('Jam_Validator_Rule_Promocode') + ->setMethods(array('valid_promo_code')) + ->setConstructorArgs(array(array())) + ->getMock(); $validator_rule ->expects($this->exactly(3)) ->method('valid_promo_code') diff --git a/tests/tests/Jam/Validator/Rule/Purchase/PromocodeTest.php b/tests/tests/Jam/Validator/Rule/Purchase/PromocodeTest.php index 5d24b5a..fe63c18 100644 --- a/tests/tests/Jam/Validator/Rule/Purchase/PromocodeTest.php +++ b/tests/tests/Jam/Validator/Rule/Purchase/PromocodeTest.php @@ -56,7 +56,10 @@ public function test_validate() $purchase = Jam::find('purchase', 1); $purchase2 = Jam::find('purchase', 1); $purchase3 = Jam::find('purchase', 1); - $promo_code = $this->getMock('Model_Promo_Code', array('validate_purchase'), array('promo_code')); + $promo_code = $this->getMockBuilder('Model_Promo_Code') + ->setMethods(array('validate_purchase')) + ->setConstructorArgs(array('promo_code')) + ->getMock(); $promo_code ->expects($this->once()) ->method('validate_purchase') @@ -66,7 +69,10 @@ public function test_validate() 'expires_at' => date('Y-m-d H:i:s', strtotime('-1 month')), )); - $validator_rule = $this->getMock('Jam_Validator_Rule_Purchase_Promocode', array('valid_promo_code'), array(array())); + $validator_rule = $this->getMockBuilder('Jam_Validator_Rule_Purchase_Promocode') + ->setMethods(array('valid_promo_code')) + ->setConstructorArgs(array(array())) + ->getMock(); $validator_rule ->expects($this->exactly(3)) ->method('valid_promo_code') diff --git a/tests/tests/Model/Promo/CodeTest.php b/tests/tests/Model/Promo/CodeTest.php index 7c970cf..62d6180 100644 --- a/tests/tests/Model/Promo/CodeTest.php +++ b/tests/tests/Model/Promo/CodeTest.php @@ -34,7 +34,10 @@ public function test_validate_purchase() { $purchase = Jam::build('purchase'); - $promotion = $this->getMock('Model_Promotion', array('validate_purchase'), array('promotion')); + $promotion = $this->getMockBuilder('Model_Promotion') + ->setMethods(array('validate_purchase')) + ->setConstructorArgs(array('promotion')) + ->getMock(); $promotion ->expects($this->once()) ->method('validate_purchase') diff --git a/tests/tests/Model/Promotion/Promocode/GitfcardTest.php b/tests/tests/Model/Promotion/Promocode/GitfcardTest.php index bc04c40..c8a1676 100644 --- a/tests/tests/Model/Promotion/Promocode/GitfcardTest.php +++ b/tests/tests/Model/Promotion/Promocode/GitfcardTest.php @@ -28,7 +28,10 @@ public function data_validate_purchase() */ public function test_validate_purchase($total_price, $expected_errors) { - $purchase = $this->getMock('Model_Purchase', array('total_price'), array('purchase')); + $purchase = $this->getMockBuilder('Model_Purchase') + ->setMethods(array('total_price')) + ->setConstructorArgs(array('purchase')) + ->getMock(); $promotion = Jam::build('promotion', array( 'currency' => 'GBP', @@ -62,11 +65,10 @@ public function test_price_for_purchase_item() { $monetary = new Monetary(new Source_Static); - $purchase_item = $this->getMock('Model_Purchase_Item_Promotion', array( - 'monetary' - ), array( - 'purchase_item_promotion' - )); + $purchase_item = $this->getMockBuilder('Model_Purchase_Item_Promotion') + ->setMethods(array('monetary')) + ->setConstructorArgs(array('purchase_item_promotion')) + ->getMock(); $purchase_item ->expects($this->any()) @@ -86,11 +88,10 @@ public function test_price_for_purchase_item() ) )); - $promotion = $this->getMock('Model_Promotion_Promocode_Giftcard', array( - 'applies_to' - ), array( - 'promotion' - )); + $promotion = $this->getMockBuilder('Model_Promotion_Promocode_Giftcard') + ->setMethods(array('applies_to')) + ->setConstructorArgs(array('promotion')) + ->getMock(); $promotion ->expects($this->exactly(2)) diff --git a/tests/tests/Model/Promotion/Promocode/PercentTest.php b/tests/tests/Model/Promotion/Promocode/PercentTest.php index 7a09666..fe4734a 100644 --- a/tests/tests/Model/Promotion/Promocode/PercentTest.php +++ b/tests/tests/Model/Promotion/Promocode/PercentTest.php @@ -20,7 +20,10 @@ public function test_price_for_purchase_item() $monetary = new Monetary(new Source_Static); $total_price = new Jam_Price(12, 'GBP', $monetary); - $brand_purchase = $this->getMock('Model_Brand_Purchase', array('total_price'), array('brand_purchase')); + $brand_purchase = $this->getMockBuilder('Model_Brand_Purchase') + ->setMethods(array('total_price')) + ->setConstructorArgs(array('brand_purchase')) + ->getMock(); $brand_purchase ->expects($this->once()) diff --git a/tests/tests/Model/Promotion/PromocodeTest.php b/tests/tests/Model/Promotion/PromocodeTest.php index 152b34d..c63f6c8 100644 --- a/tests/tests/Model/Promotion/PromocodeTest.php +++ b/tests/tests/Model/Promotion/PromocodeTest.php @@ -16,7 +16,10 @@ public function test_matches_brand_purchase_promo_code() { $brand_purchase = Jam::build('brand_purchase', array('purchase' => Jam::build('purchase'))); - $promotion = $this->getMock('Model_Promotion_Promocode', array('has_promo_code'), array('promotion_promocode')); + $promotion = $this->getMockBuilder('Model_Promotion_Promocode') + ->setMethods(array('has_promo_code')) + ->setConstructorArgs(array('promotion_promocode')) + ->getMock(); $promo_code = Jam::build('promo_code'); $promotion @@ -40,7 +43,10 @@ public function test_applies_to() { $brand_purchase = Jam::build('brand_purchase'); - $promotion = $this->getMock('Model_Promotion_Promocode', array('matches_brand_purchase_promo_code'), array('promotion')); + $promotion = $this->getMockBuilder('Model_Promotion_Promocode') + ->setMethods(array('matches_brand_purchase_promo_code')) + ->setConstructorArgs(array('promotion')) + ->getMock(); $promotion ->expects($this->exactly(2)) diff --git a/tests/tests/Model/PromotionTest.php b/tests/tests/Model/PromotionTest.php index 34ac5af..09ff8a0 100644 --- a/tests/tests/Model/PromotionTest.php +++ b/tests/tests/Model/PromotionTest.php @@ -84,11 +84,10 @@ public function test_build_purchase_item() public function test_update_brand_purchase() { - $brand_purchase = $this->getMock('Model_Brand_Purchase', array( - 'search_same_item' - ), array( - 'brand_purchase' - )); + $brand_purchase = $this->getMockBuilder('Model_Brand_Purchase') + ->setMethods(array('search_same_item')) + ->setConstructorArgs(array('brand_purchase')) + ->getMock(); $brand_purchase->items = array( array('id' => 10, 'model' => 'purchase_item_product'), diff --git a/tests/tests/Model/Purchase/Item/PromotionTest.php b/tests/tests/Model/Purchase/Item/PromotionTest.php index 2adc619..f8bc164 100644 --- a/tests/tests/Model/Purchase/Item/PromotionTest.php +++ b/tests/tests/Model/Purchase/Item/PromotionTest.php @@ -22,15 +22,14 @@ public function test_initialize() */ public function test_get_price() { - $mock = $this->getMock('stdClass', array( - 'price_for_purchase_item' - )); + $mock = $this->getMockBuilder('stdClass') + ->setMethods(array('price_for_purchase_item')) + ->getMock(); - $purchase_item = $this->getMock('Model_Purchase_Item_Promotion', array( - 'get_reference_paranoid' - ), array( - 'purchase_item_promotion' - )); + $purchase_item = $this->getMockBuilder('Model_Purchase_Item_Promotion') + ->setMethods(array('get_reference_paranoid')) + ->setConstructorArgs(array('purchase_item_promotion')) + ->getMock(); $purchase_item ->expects($this->exactly(2)) From 4d626288561f849cbf87b42cca2b99a13e9f75da Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Sat, 22 Apr 2017 14:58:45 +0300 Subject: [PATCH 08/10] Update Travis CI configuration --- .travis.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index e5e4600..63e5e26 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,15 +3,15 @@ language: php sudo: false php: - - 5.4 - - 5.5 - - 5.6 - - 7 + - 7.0 + - 7.1 matrix: fast_finish: true - allow_failures: - - php: 7 + +branches: + only: + - master cache: directories: @@ -23,8 +23,7 @@ notifications: secure: jkZDWqI+za7mMP1RnozFmsB6SM2THjp59elBEpMrewjG270NpCdB2fCc2XFSeHVJ1vyPax/Q139CsWhctpD4smA4An1GmTsvQyVcWVvKsqsrTG0q22cBx+WKJKL9cwxQ+UQSbvySVCY6V3oXaqmaPBK97oqHZOc+FET2Z9WDHhc= install: - - composer selfupdate - - composer install --no-interaction + - travis_retry composer install --no-interaction --no-progress --prefer-dist before_script: - mkdir -p build/logs @@ -32,7 +31,7 @@ before_script: - mysql --default-character-set=utf8 OpenBuildings/promotions < tests/test_data/structure.sql script: - - vendor/bin/phpunit --coverage-clover build/logs/clover.xml + - vendor/bin/phpunit --coverage-clover build/logs/clover.xml --coverage-text after_script: - wget https://scrutinizer-ci.com/ocular.phar From 2dd2dbb87bb4fc1ba9d4d82ff5b02b9c0ca3bcd5 Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Sat, 22 Apr 2017 14:59:56 +0300 Subject: [PATCH 09/10] Ignore local modifications to PHPUnit configuration --- .gitignore | 3 +++ phpunit.xml => phpunit.xml.dist | 0 2 files changed, 3 insertions(+) rename phpunit.xml => phpunit.xml.dist (100%) diff --git a/.gitignore b/.gitignore index 722a67a..4b7ef5c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ /vendor/ /build/ /modules/ + +# Ignore local modifications +/phpunit.xml diff --git a/phpunit.xml b/phpunit.xml.dist similarity index 100% rename from phpunit.xml rename to phpunit.xml.dist From f25d428fc2c84dace49e38afcc33e4b96ff008c5 Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Sat, 22 Apr 2017 15:00:47 +0300 Subject: [PATCH 10/10] Force @covers annotations for PHPUnit code coverage reports --- phpunit.xml.dist | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index f212bc1..49826cf 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,4 +1,7 @@ - + tests/tests