summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavey Shafik <me@daveyshafik.com>2017-01-08 15:21:21 -0800
committerDavey Shafik <me@daveyshafik.com>2017-01-08 15:39:26 -0800
commit27fa155bd5432d79a0e67744dd58b813e263f0a5 (patch)
tree330da21d6196da713e67afbca93491fc88a348c9
parentb20c8c6569c2a3144c311a40b3a2e9a658468949 (diff)
downloadphp7-mysql-shim-27fa155bd5432d79a0e67744dd58b813e263f0a5.zip
php7-mysql-shim-27fa155bd5432d79a0e67744dd58b813e263f0a5.tar.gz
php7-mysql-shim-27fa155bd5432d79a0e67744dd58b813e263f0a5.tar.bz2
Fix tests on earlier versions of PHP/PHPUnitorigin/old-php-support
-rw-r--r--composer.json12
-rw-r--r--composer.lock861
-rw-r--r--tests/MySqlShimTest.php279
3 files changed, 364 insertions, 788 deletions
diff --git a/composer.json b/composer.json
index ff55c34..d301422 100644
--- a/composer.json
+++ b/composer.json
@@ -10,16 +10,20 @@
}
],
"require": {
- "php": ">=5.3",
+ "php": ">=5.3.6",
"ext-mysqli": "*"
},
"require-dev": {
- "php": ">=5.6",
"squizlabs/php_codesniffer": "^2.3",
- "friendsofphp/php-cs-fixer": "^1.9",
- "phpunit/phpunit": "^5.2"
+ "friendsofphp/php-cs-fixer": "^1.9|^2.0",
+ "phpunit/phpunit": "^4.8|^5.2"
},
"autoload": {
"files": ["lib/mysql.php"]
+ },
+ "config": {
+ "platform": {
+ "php": "5.3.6"
+ }
}
}
diff --git a/composer.lock b/composer.lock
index 83186ae..d9bd9c0 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": "cea2ad5e972c54896b93098964b5f7a3",
+ "content-hash": "93b229ab4781e2b15481f05505f5f163",
"packages": [],
"packages-dev": [
{
@@ -63,16 +63,16 @@
},
{
"name": "friendsofphp/php-cs-fixer",
- "version": "v1.12.3",
+ "version": "v2.0.0",
"source": {
"type": "git",
"url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git",
- "reference": "78a820c16d13f593303511461eefa939502fb2de"
+ "reference": "f3baf72eb2f58bf275b372540f5b47d25aed910f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/78a820c16d13f593303511461eefa939502fb2de",
- "reference": "78a820c16d13f593303511461eefa939502fb2de",
+ "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/f3baf72eb2f58bf275b372540f5b47d25aed910f",
+ "reference": "f3baf72eb2f58bf275b372540f5b47d25aed910f",
"shasum": ""
},
"require": {
@@ -81,8 +81,9 @@
"sebastian/diff": "^1.1",
"symfony/console": "^2.3 || ^3.0",
"symfony/event-dispatcher": "^2.1 || ^3.0",
- "symfony/filesystem": "^2.1 || ^3.0",
- "symfony/finder": "^2.1 || ^3.0",
+ "symfony/filesystem": "^2.4 || ^3.0",
+ "symfony/finder": "^2.2 || ^3.0",
+ "symfony/polyfill-php54": "^1.0",
"symfony/process": "^2.3 || ^3.0",
"symfony/stopwatch": "^2.5 || ^3.0"
},
@@ -90,6 +91,7 @@
"hhvm": "<3.9"
},
"require-dev": {
+ "gecko-packages/gecko-php-unit": "^2.0",
"phpunit/phpunit": "^4.5|^5",
"satooshi/php-coveralls": "^1.0"
},
@@ -97,9 +99,14 @@
"php-cs-fixer"
],
"type": "application",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0-dev"
+ }
+ },
"autoload": {
"psr-4": {
- "Symfony\\CS\\": "Symfony/CS/"
+ "PhpCsFixer\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -117,180 +124,41 @@
}
],
"description": "A tool to automatically fix PHP code style",
- "time": "2016-10-30T12:07:10+00:00"
- },
- {
- "name": "myclabs/deep-copy",
- "version": "1.5.5",
- "source": {
- "type": "git",
- "url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "399c1f9781e222f6eb6cc238796f5200d1b7f108"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/399c1f9781e222f6eb6cc238796f5200d1b7f108",
- "reference": "399c1f9781e222f6eb6cc238796f5200d1b7f108",
- "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": "2016-10-31T17:19:45+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"
+ "time": "2016-12-01T06:18:06+00:00"
},
{
"name": "phpdocumentor/reflection-docblock",
- "version": "3.1.1",
+ "version": "2.0.4",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
- "reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e"
+ "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/8331b5efe816ae05461b7ca1e721c01b46bafb3e",
- "reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8",
+ "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8",
"shasum": ""
},
"require": {
- "php": ">=5.5",
- "phpdocumentor/reflection-common": "^1.0@dev",
- "phpdocumentor/type-resolver": "^0.2.0",
- "webmozart/assert": "^1.0"
+ "php": ">=5.3.3"
},
"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",
- "source": {
- "type": "git",
- "url": "https://github.com/phpDocumentor/TypeResolver.git",
- "reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/b39c7a5b194f9ed7bd0dd345c751007a41862443",
- "reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5",
- "phpdocumentor/reflection-common": "^1.0"
+ "phpunit/phpunit": "~4.0"
},
- "require-dev": {
- "mockery/mockery": "^0.9.4",
- "phpunit/phpunit": "^5.2||^4.8.24"
+ "suggest": {
+ "dflydev/markdown": "~1.0",
+ "erusev/parsedown": "~1.0"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.0.x-dev"
+ "dev-master": "2.0.x-dev"
}
},
"autoload": {
- "psr-4": {
- "phpDocumentor\\Reflection\\": [
+ "psr-0": {
+ "phpDocumentor": [
"src/"
]
}
@@ -302,23 +170,23 @@
"authors": [
{
"name": "Mike van Riel",
- "email": "me@mikevanriel.com"
+ "email": "mike.vanriel@naenius.com"
}
],
- "time": "2016-06-10T07:14:17+00:00"
+ "time": "2015-02-03T12:10:50+00:00"
},
{
"name": "phpspec/prophecy",
- "version": "v1.6.1",
+ "version": "v1.6.2",
"source": {
"type": "git",
"url": "https://github.com/phpspec/prophecy.git",
- "reference": "58a8137754bc24b25740d4281399a4a3596058e0"
+ "reference": "6c52c2722f8460122f96f86346600e1077ce22cb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpspec/prophecy/zipball/58a8137754bc24b25740d4281399a4a3596058e0",
- "reference": "58a8137754bc24b25740d4281399a4a3596058e0",
+ "url": "https://api.github.com/repos/phpspec/prophecy/zipball/6c52c2722f8460122f96f86346600e1077ce22cb",
+ "reference": "6c52c2722f8460122f96f86346600e1077ce22cb",
"shasum": ""
},
"require": {
@@ -326,10 +194,11 @@
"php": "^5.3|^7.0",
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2",
"sebastian/comparator": "^1.1",
- "sebastian/recursion-context": "^1.0"
+ "sebastian/recursion-context": "^1.0|^2.0"
},
"require-dev": {
- "phpspec/phpspec": "^2.0"
+ "phpspec/phpspec": "^2.0",
+ "phpunit/phpunit": "^4.8 || ^5.6.5"
},
"type": "library",
"extra": {
@@ -367,44 +236,43 @@
"spy",
"stub"
],
- "time": "2016-06-07T08:13:47+00:00"
+ "time": "2016-11-21T14:58:47+00:00"
},
{
"name": "phpunit/php-code-coverage",
- "version": "4.0.2",
+ "version": "2.2.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "6cba06ff75a1a63a71033e1a01b89056f3af1e8d"
+ "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/6cba06ff75a1a63a71033e1a01b89056f3af1e8d",
- "reference": "6cba06ff75a1a63a71033e1a01b89056f3af1e8d",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
+ "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
"shasum": ""
},
"require": {
- "php": "^5.6 || ^7.0",
+ "php": ">=5.3.3",
"phpunit/php-file-iterator": "~1.3",
"phpunit/php-text-template": "~1.2",
- "phpunit/php-token-stream": "^1.4.2",
- "sebastian/code-unit-reverse-lookup": "~1.0",
- "sebastian/environment": "^1.3.2 || ^2.0",
- "sebastian/version": "~1.0|~2.0"
+ "phpunit/php-token-stream": "~1.3",
+ "sebastian/environment": "^1.3.2",
+ "sebastian/version": "~1.0"
},
"require-dev": {
"ext-xdebug": ">=2.1.4",
- "phpunit/phpunit": "^5.4"
+ "phpunit/phpunit": "~4"
},
"suggest": {
"ext-dom": "*",
- "ext-xdebug": ">=2.4.0",
+ "ext-xdebug": ">=2.2.1",
"ext-xmlwriter": "*"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "4.0.x-dev"
+ "dev-master": "2.2.x-dev"
}
},
"autoload": {
@@ -430,20 +298,20 @@
"testing",
"xunit"
],
- "time": "2016-11-01T05:06:24+00:00"
+ "time": "2015-10-06T15:47:00+00:00"
},
{
"name": "phpunit/php-file-iterator",
- "version": "1.4.1",
+ "version": "1.4.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-file-iterator.git",
- "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0"
+ "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/6150bf2c35d3fc379e50c7602b75caceaa39dbf0",
- "reference": "6150bf2c35d3fc379e50c7602b75caceaa39dbf0",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3cc8f69b3028d0f96a9078e6295d86e9bf019be5",
+ "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5",
"shasum": ""
},
"require": {
@@ -477,7 +345,7 @@
"filesystem",
"iterator"
],
- "time": "2015-06-21T13:08:43+00:00"
+ "time": "2016-10-03T07:40:28+00:00"
},
{
"name": "phpunit/php-text-template",
@@ -566,16 +434,16 @@
},
{
"name": "phpunit/php-token-stream",
- "version": "1.4.8",
+ "version": "1.4.9",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da"
+ "reference": "3b402f65a4cc90abf6e1104e388b896ce209631b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da",
- "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/3b402f65a4cc90abf6e1104e388b896ce209631b",
+ "reference": "3b402f65a4cc90abf6e1104e388b896ce209631b",
"shasum": ""
},
"require": {
@@ -611,54 +479,44 @@
"keywords": [
"tokenizer"
],
- "time": "2015-09-15T10:49:45+00:00"
+ "time": "2016-11-15T14:06:22+00:00"
},
{
"name": "phpunit/phpunit",
- "version": "5.6.2",
+ "version": "4.8.31",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "cd13b23ac5a519a4708e00736c26ee0bb28b2e01"
+ "reference": "98b2b39a520766bec663ff5b7ff1b729db9dbfe3"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/cd13b23ac5a519a4708e00736c26ee0bb28b2e01",
- "reference": "cd13b23ac5a519a4708e00736c26ee0bb28b2e01",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/98b2b39a520766bec663ff5b7ff1b729db9dbfe3",
+ "reference": "98b2b39a520766bec663ff5b7ff1b729db9dbfe3",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-json": "*",
- "ext-libxml": "*",
- "ext-mbstring": "*",
- "ext-xml": "*",
- "myclabs/deep-copy": "~1.3",
- "php": "^5.6 || ^7.0",
+ "ext-pcre": "*",
+ "ext-reflection": "*",
+ "ext-spl": "*",
+ "php": ">=5.3.3",
"phpspec/prophecy": "^1.3.1",
- "phpunit/php-code-coverage": "^4.0.1",
+ "phpunit/php-code-coverage": "~2.1",
"phpunit/php-file-iterator": "~1.4",
"phpunit/php-text-template": "~1.2",
"phpunit/php-timer": "^1.0.6",
- "phpunit/phpunit-mock-objects": "^3.2",
- "sebastian/comparator": "~1.1",
+ "phpunit/phpunit-mock-objects": "~2.3",
+ "sebastian/comparator": "~1.2.2",
"sebastian/diff": "~1.2",
- "sebastian/environment": "^1.3 || ^2.0",
+ "sebastian/environment": "~1.3",
"sebastian/exporter": "~1.2",
"sebastian/global-state": "~1.0",
- "sebastian/object-enumerator": "~1.0",
- "sebastian/resource-operations": "~1.0",
- "sebastian/version": "~1.0|~2.0",
+ "sebastian/version": "~1.0",
"symfony/yaml": "~2.1|~3.0"
},
- "conflict": {
- "phpdocumentor/reflection-docblock": "3.0.2"
- },
- "require-dev": {
- "ext-pdo": "*"
- },
"suggest": {
- "ext-xdebug": "*",
"phpunit/php-invoker": "~1.1"
},
"bin": [
@@ -667,7 +525,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "5.6.x-dev"
+ "dev-master": "4.8.x-dev"
}
},
"autoload": {
@@ -693,33 +551,30 @@
"testing",
"xunit"
],
- "time": "2016-10-25T07:40:25+00:00"
+ "time": "2016-12-09T02:45:31+00:00"
},
{
"name": "phpunit/phpunit-mock-objects",
- "version": "3.4.0",
+ "version": "2.3.8",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "238d7a2723bce689c79eeac9c7d5e1d623bb9dc2"
+ "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/238d7a2723bce689c79eeac9c7d5e1d623bb9dc2",
- "reference": "238d7a2723bce689c79eeac9c7d5e1d623bb9dc2",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
+ "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
"shasum": ""
},
"require": {
"doctrine/instantiator": "^1.0.2",
- "php": "^5.6 || ^7.0",
- "phpunit/php-text-template": "^1.2",
- "sebastian/exporter": "^1.2"
- },
- "conflict": {
- "phpunit/phpunit": "<5.4.0"
+ "php": ">=5.3.3",
+ "phpunit/php-text-template": "~1.2",
+ "sebastian/exporter": "~1.2"
},
"require-dev": {
- "phpunit/phpunit": "^5.4"
+ "phpunit/phpunit": "~4.4"
},
"suggest": {
"ext-soap": "*"
@@ -727,7 +582,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.2.x-dev"
+ "dev-master": "2.3.x-dev"
}
},
"autoload": {
@@ -752,118 +607,26 @@
"mock",
"xunit"
],
- "time": "2016-10-09T07:01:45+00:00"
- },
- {
- "name": "psr/log",
- "version": "1.0.2",
- "source": {
- "type": "git",
- "url": "https://github.com/php-fig/log.git",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
- "shasum": ""
- },
- "require": {
- "php": ">=5.3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Psr\\Log\\": "Psr/Log/"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "PHP-FIG",
- "homepage": "http://www.php-fig.org/"
- }
- ],
- "description": "Common interface for logging libraries",
- "homepage": "https://github.com/php-fig/log",
- "keywords": [
- "log",
- "psr",
- "psr-3"
- ],
- "time": "2016-10-10T12:19:37+00:00"
- },
- {
- "name": "sebastian/code-unit-reverse-lookup",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
- "reference": "c36f5e7cfce482fde5bf8d10d41a53591e0198fe"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/c36f5e7cfce482fde5bf8d10d41a53591e0198fe",
- "reference": "c36f5e7cfce482fde5bf8d10d41a53591e0198fe",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6"
- },
- "require-dev": {
- "phpunit/phpunit": "~5"
- },
- "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": "2016-02-13T06:45:14+00:00"
+ "time": "2015-10-02T06:51:40+00:00"
},
{
"name": "sebastian/comparator",
- "version": "1.2.0",
+ "version": "1.2.2",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git",
- "reference": "937efb279bd37a375bcadf584dec0726f84dbf22"
+ "reference": "6a1ed12e8b2409076ab22e3897126211ff8b1f7f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/937efb279bd37a375bcadf584dec0726f84dbf22",
- "reference": "937efb279bd37a375bcadf584dec0726f84dbf22",
+ "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/6a1ed12e8b2409076ab22e3897126211ff8b1f7f",
+ "reference": "6a1ed12e8b2409076ab22e3897126211ff8b1f7f",
"shasum": ""
},
"require": {
"php": ">=5.3.3",
"sebastian/diff": "~1.2",
- "sebastian/exporter": "~1.2"
+ "sebastian/exporter": "~1.2 || ~2.0"
},
"require-dev": {
"phpunit/phpunit": "~4.4"
@@ -908,7 +671,7 @@
"compare",
"equality"
],
- "time": "2015-07-26T15:48:44+00:00"
+ "time": "2016-11-19T09:18:40+00:00"
},
{
"name": "sebastian/diff",
@@ -1131,52 +894,6 @@
"time": "2015-10-12T03:26:01+00:00"
},
{
- "name": "sebastian/object-enumerator",
- "version": "1.0.0",
- "source": {
- "type": "git",
- "url": "https://github.com/sebastianbergmann/object-enumerator.git",
- "reference": "d4ca2fb70344987502567bc50081c03e6192fb26"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/d4ca2fb70344987502567bc50081c03e6192fb26",
- "reference": "d4ca2fb70344987502567bc50081c03e6192fb26",
- "shasum": ""
- },
- "require": {
- "php": ">=5.6",
- "sebastian/recursion-context": "~1.0"
- },
- "require-dev": {
- "phpunit/phpunit": "~5"
- },
- "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": "Traverses array structures and object graphs to enumerate all referenced objects",
- "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2016-01-28T13:25:10+00:00"
- },
- {
"name": "sebastian/recursion-context",
"version": "1.0.2",
"source": {
@@ -1230,70 +947,20 @@
"time": "2015-11-11T19:50:13+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.0",
+ "version": "1.0.6",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/version.git",
- "reference": "c829badbd8fdf16a0bad8aa7fa7971c029f1b9c5"
+ "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c829badbd8fdf16a0bad8aa7fa7971c029f1b9c5",
- "reference": "c829badbd8fdf16a0bad8aa7fa7971c029f1b9c5",
+ "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
+ "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6",
"shasum": ""
},
- "require": {
- "php": ">=5.6"
- },
"type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "2.0.x-dev"
- }
- },
"autoload": {
"classmap": [
"src/"
@@ -1312,20 +979,20 @@
],
"description": "Library that helps with managing the version number of Git-hosted PHP projects",
"homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-02-04T12:56:52+00:00"
+ "time": "2015-06-21T13:59:46+00:00"
},
{
"name": "squizlabs/php_codesniffer",
- "version": "2.7.0",
+ "version": "2.7.1",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "571e27b6348e5b3a637b2abc82ac0d01e6d7bbed"
+ "reference": "9b324f3a1132459a7274a0ace2e1b766ba80930f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/571e27b6348e5b3a637b2abc82ac0d01e6d7bbed",
- "reference": "571e27b6348e5b3a637b2abc82ac0d01e6d7bbed",
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/9b324f3a1132459a7274a0ace2e1b766ba80930f",
+ "reference": "9b324f3a1132459a7274a0ace2e1b766ba80930f",
"shasum": ""
},
"require": {
@@ -1390,31 +1057,31 @@
"phpcs",
"standards"
],
- "time": "2016-09-01T23:53:02+00:00"
+ "time": "2016-11-30T04:02:31+00:00"
},
{
"name": "symfony/console",
- "version": "v3.1.6",
+ "version": "v2.6.13",
+ "target-dir": "Symfony/Component/Console",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
- "reference": "c99da1119ae61e15de0e4829196b9fba6f73d065"
+ "reference": "0e5e18ae09d3f5c06367759be940e9ed3f568359"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/c99da1119ae61e15de0e4829196b9fba6f73d065",
- "reference": "c99da1119ae61e15de0e4829196b9fba6f73d065",
+ "url": "https://api.github.com/repos/symfony/console/zipball/0e5e18ae09d3f5c06367759be940e9ed3f568359",
+ "reference": "0e5e18ae09d3f5c06367759be940e9ed3f568359",
"shasum": ""
},
"require": {
- "php": ">=5.5.9",
- "symfony/debug": "~2.8|~3.0",
- "symfony/polyfill-mbstring": "~1.0"
+ "php": ">=5.3.3"
},
"require-dev": {
"psr/log": "~1.0",
- "symfony/event-dispatcher": "~2.8|~3.0",
- "symfony/process": "~2.8|~3.0"
+ "symfony/event-dispatcher": "~2.1",
+ "symfony/phpunit-bridge": "~2.7",
+ "symfony/process": "~2.1"
},
"suggest": {
"psr/log": "For using the console logger",
@@ -1424,74 +1091,14 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.1-dev"
+ "dev-master": "2.6-dev"
}
},
"autoload": {
- "psr-4": {
+ "psr-0": {
"Symfony\\Component\\Console\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "Fabien Potencier",
- "email": "fabien@symfony.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
- "description": "Symfony Console Component",
- "homepage": "https://symfony.com",
- "time": "2016-10-06T01:44:51+00:00"
- },
- {
- "name": "symfony/debug",
- "version": "v3.1.6",
- "source": {
- "type": "git",
- "url": "https://github.com/symfony/debug.git",
- "reference": "e2b3f74a67fc928adc3c1b9027f73e1bc01190a8"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/symfony/debug/zipball/e2b3f74a67fc928adc3c1b9027f73e1bc01190a8",
- "reference": "e2b3f74a67fc928adc3c1b9027f73e1bc01190a8",
- "shasum": ""
- },
- "require": {
- "php": ">=5.5.9",
- "psr/log": "~1.0"
- },
- "conflict": {
- "symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
- },
- "require-dev": {
- "symfony/class-loader": "~2.8|~3.0",
- "symfony/http-kernel": "~2.8|~3.0"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "3.1-dev"
}
},
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Debug\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
@@ -1506,33 +1113,35 @@
"homepage": "https://symfony.com/contributors"
}
],
- "description": "Symfony Debug Component",
+ "description": "Symfony Console Component",
"homepage": "https://symfony.com",
- "time": "2016-09-06T11:02:40+00:00"
+ "time": "2015-07-26T09:08:40+00:00"
},
{
"name": "symfony/event-dispatcher",
- "version": "v3.1.6",
+ "version": "v2.6.13",
+ "target-dir": "Symfony/Component/EventDispatcher",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "28b0832b2553ffb80cabef6a7a812ff1e670c0bc"
+ "reference": "672593bc4b0043a0acf91903bb75a1c82d8f2e02"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/28b0832b2553ffb80cabef6a7a812ff1e670c0bc",
- "reference": "28b0832b2553ffb80cabef6a7a812ff1e670c0bc",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/672593bc4b0043a0acf91903bb75a1c82d8f2e02",
+ "reference": "672593bc4b0043a0acf91903bb75a1c82d8f2e02",
"shasum": ""
},
"require": {
- "php": ">=5.5.9"
+ "php": ">=5.3.3"
},
"require-dev": {
"psr/log": "~1.0",
- "symfony/config": "~2.8|~3.0",
- "symfony/dependency-injection": "~2.8|~3.0",
- "symfony/expression-language": "~2.8|~3.0",
- "symfony/stopwatch": "~2.8|~3.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"
},
"suggest": {
"symfony/dependency-injection": "",
@@ -1541,16 +1150,13 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.1-dev"
+ "dev-master": "2.6-dev"
}
},
"autoload": {
- "psr-4": {
+ "psr-0": {
"Symfony\\Component\\EventDispatcher\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -1568,38 +1174,39 @@
],
"description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com",
- "time": "2016-10-13T06:28:43+00:00"
+ "time": "2015-05-02T15:18:45+00:00"
},
{
"name": "symfony/filesystem",
- "version": "v3.1.6",
+ "version": "v2.6.13",
+ "target-dir": "Symfony/Component/Filesystem",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
- "reference": "0565b61bf098cb4dc09f4f103f033138ae4f42c6"
+ "reference": "823c035b1a5c13a4924e324d016eb07e70f94735"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/0565b61bf098cb4dc09f4f103f033138ae4f42c6",
- "reference": "0565b61bf098cb4dc09f4f103f033138ae4f42c6",
+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/823c035b1a5c13a4924e324d016eb07e70f94735",
+ "reference": "823c035b1a5c13a4924e324d016eb07e70f94735",
"shasum": ""
},
"require": {
- "php": ">=5.5.9"
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.1-dev"
+ "dev-master": "2.6-dev"
}
},
"autoload": {
- "psr-4": {
+ "psr-0": {
"Symfony\\Component\\Filesystem\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -1617,38 +1224,39 @@
],
"description": "Symfony Filesystem Component",
"homepage": "https://symfony.com",
- "time": "2016-10-18T04:30:12+00:00"
+ "time": "2015-07-08T05:59:48+00:00"
},
{
"name": "symfony/finder",
- "version": "v3.1.6",
+ "version": "v2.6.13",
+ "target-dir": "Symfony/Component/Finder",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
- "reference": "205b5ffbb518a98ba2ae60a52656c4a31ab00c6f"
+ "reference": "203a10f928ae30176deeba33512999233181dd28"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/205b5ffbb518a98ba2ae60a52656c4a31ab00c6f",
- "reference": "205b5ffbb518a98ba2ae60a52656c4a31ab00c6f",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/203a10f928ae30176deeba33512999233181dd28",
+ "reference": "203a10f928ae30176deeba33512999233181dd28",
"shasum": ""
},
"require": {
- "php": ">=5.5.9"
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.1-dev"
+ "dev-master": "2.6-dev"
}
},
"autoload": {
- "psr-4": {
+ "psr-0": {
"Symfony\\Component\\Finder\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -1666,40 +1274,40 @@
],
"description": "Symfony Finder Component",
"homepage": "https://symfony.com",
- "time": "2016-09-28T00:11:12+00:00"
+ "time": "2015-07-09T16:02:48+00:00"
},
{
- "name": "symfony/polyfill-mbstring",
- "version": "v1.2.0",
+ "name": "symfony/polyfill-php54",
+ "version": "v1.3.0",
"source": {
"type": "git",
- "url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "dff51f72b0706335131b00a7f49606168c582594"
+ "url": "https://github.com/symfony/polyfill-php54.git",
+ "reference": "90e085822963fdcc9d1c5b73deb3d2e5783b16a0"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/dff51f72b0706335131b00a7f49606168c582594",
- "reference": "dff51f72b0706335131b00a7f49606168c582594",
+ "url": "https://api.github.com/repos/symfony/polyfill-php54/zipball/90e085822963fdcc9d1c5b73deb3d2e5783b16a0",
+ "reference": "90e085822963fdcc9d1c5b73deb3d2e5783b16a0",
"shasum": ""
},
"require": {
"php": ">=5.3.3"
},
- "suggest": {
- "ext-mbstring": "For best performance"
- },
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.2-dev"
+ "dev-master": "1.3-dev"
}
},
"autoload": {
"psr-4": {
- "Symfony\\Polyfill\\Mbstring\\": ""
+ "Symfony\\Polyfill\\Php54\\": ""
},
"files": [
"bootstrap.php"
+ ],
+ "classmap": [
+ "Resources/stubs"
]
},
"notification-url": "https://packagist.org/downloads/",
@@ -1716,47 +1324,47 @@
"homepage": "https://symfony.com/contributors"
}
],
- "description": "Symfony polyfill for the Mbstring extension",
+ "description": "Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
- "mbstring",
"polyfill",
"portable",
"shim"
],
- "time": "2016-05-18T14:26:46+00:00"
+ "time": "2016-11-14T01:06:16+00:00"
},
{
"name": "symfony/process",
- "version": "v3.1.6",
+ "version": "v2.6.13",
+ "target-dir": "Symfony/Component/Process",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
- "reference": "66de154ae86b1a07001da9fbffd620206e4faf94"
+ "reference": "57f1e88bb5dafa449b83f9f265b11d52d517b3e9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/66de154ae86b1a07001da9fbffd620206e4faf94",
- "reference": "66de154ae86b1a07001da9fbffd620206e4faf94",
+ "url": "https://api.github.com/repos/symfony/process/zipball/57f1e88bb5dafa449b83f9f265b11d52d517b3e9",
+ "reference": "57f1e88bb5dafa449b83f9f265b11d52d517b3e9",
"shasum": ""
},
"require": {
- "php": ">=5.5.9"
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.1-dev"
+ "dev-master": "2.6-dev"
}
},
"autoload": {
- "psr-4": {
+ "psr-0": {
"Symfony\\Component\\Process\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -1774,38 +1382,39 @@
],
"description": "Symfony Process Component",
"homepage": "https://symfony.com",
- "time": "2016-09-29T14:13:09+00:00"
+ "time": "2015-06-30T16:10:16+00:00"
},
{
"name": "symfony/stopwatch",
- "version": "v3.1.6",
+ "version": "v2.6.13",
+ "target-dir": "Symfony/Component/Stopwatch",
"source": {
"type": "git",
"url": "https://github.com/symfony/stopwatch.git",
- "reference": "bb42806b12c5f89db4ebf64af6741afe6d8457e1"
+ "reference": "a0d91f2f4e2c60bd78f13388aa68f9d7cab8c987"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/bb42806b12c5f89db4ebf64af6741afe6d8457e1",
- "reference": "bb42806b12c5f89db4ebf64af6741afe6d8457e1",
+ "url": "https://api.github.com/repos/symfony/stopwatch/zipball/a0d91f2f4e2c60bd78f13388aa68f9d7cab8c987",
+ "reference": "a0d91f2f4e2c60bd78f13388aa68f9d7cab8c987",
"shasum": ""
},
"require": {
- "php": ">=5.5.9"
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.1-dev"
+ "dev-master": "2.6-dev"
}
},
"autoload": {
- "psr-4": {
+ "psr-0": {
"Symfony\\Component\\Stopwatch\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -1823,38 +1432,39 @@
],
"description": "Symfony Stopwatch Component",
"homepage": "https://symfony.com",
- "time": "2016-06-29T05:41:56+00:00"
+ "time": "2015-07-01T18:23:01+00:00"
},
{
"name": "symfony/yaml",
- "version": "v3.1.6",
+ "version": "v2.6.13",
+ "target-dir": "Symfony/Component/Yaml",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
- "reference": "7ff51b06c6c3d5cc6686df69004a42c69df09e27"
+ "reference": "c044d1744b8e91aaaa0d9bac683ab87ec7cbf359"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/yaml/zipball/7ff51b06c6c3d5cc6686df69004a42c69df09e27",
- "reference": "7ff51b06c6c3d5cc6686df69004a42c69df09e27",
+ "url": "https://api.github.com/repos/symfony/yaml/zipball/c044d1744b8e91aaaa0d9bac683ab87ec7cbf359",
+ "reference": "c044d1744b8e91aaaa0d9bac683ab87ec7cbf359",
"shasum": ""
},
"require": {
- "php": ">=5.5.9"
+ "php": ">=5.3.3"
+ },
+ "require-dev": {
+ "symfony/phpunit-bridge": "~2.7"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "3.1-dev"
+ "dev-master": "2.6-dev"
}
},
"autoload": {
- "psr-4": {
+ "psr-0": {
"Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
+ }
},
"notification-url": "https://packagist.org/downloads/",
"license": [
@@ -1872,57 +1482,7 @@
],
"description": "Symfony Yaml Component",
"homepage": "https://symfony.com",
- "time": "2016-10-24T18:41:13+00:00"
- },
- {
- "name": "webmozart/assert",
- "version": "1.1.0",
- "source": {
- "type": "git",
- "url": "https://github.com/webmozart/assert.git",
- "reference": "bb2d123231c095735130cc8f6d31385a44c7b308"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/webmozart/assert/zipball/bb2d123231c095735130cc8f6d31385a44c7b308",
- "reference": "bb2d123231c095735130cc8f6d31385a44c7b308",
- "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.2-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-08-09T15:02:57+00:00"
+ "time": "2015-07-26T08:59:42+00:00"
}
],
"aliases": [],
@@ -1931,8 +1491,11 @@
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
- "php": ">=5.6",
+ "php": ">=5.3.6",
"ext-mysqli": "*"
},
- "platform-dev": []
+ "platform-dev": [],
+ "platform-overrides": {
+ "php": "5.3.6"
+ }
}
diff --git a/tests/MySqlShimTest.php b/tests/MySqlShimTest.php
index c2ebfe8..3cd86e2 100644
--- a/tests/MySqlShimTest.php
+++ b/tests/MySqlShimTest.php
@@ -24,14 +24,14 @@ class MySqlShimTest extends \PHPUnit_Framework_TestCase
/**
* @var array Location of binaries
*/
- static protected $bin = [];
+ static protected $bin = array();
/**
* @var \SebastianBergmann\Environment\Runtime
*/
protected $runtime;
- public function __construct($name = null, array $data = [], $dataName = '')
+ public function __construct($name = null, array $data = array(), $dataName = '')
{
parent::__construct($name, $data, $dataName);
$this->runtime = new \SebastianBergmann\Environment\Runtime();
@@ -277,10 +277,12 @@ class MySqlShimTest extends \PHPUnit_Framework_TestCase
$this->getConnection();
$result = mysql_db_query("shim_test", "SELECT DATABASE()");
$this->assertResult($result);
- $this->assertEquals("shim_test", mysql_fetch_row($result)[0]);
+ $rows = mysql_fetch_row($result);
+ $this->assertEquals("shim_test", $rows[0]);
$result = mysql_db_query("mysql", "SELECT DATABASE()");
$this->assertResult($result);
- $this->assertEquals("mysql", mysql_fetch_row($result)[0]);
+ $rows = mysql_fetch_row($result);
+ $this->assertEquals("mysql", $rows[0]);
}
public function test_mysql_db_query_fail()
@@ -370,14 +372,14 @@ class MySqlShimTest extends \PHPUnit_Framework_TestCase
$i++;
$this->assertEquals(
- [
+ array(
'Field',
'Type',
'Null',
'Key',
'Default',
'Extra'
- ],
+ ),
array_keys($row)
);
}
@@ -427,14 +429,14 @@ class MySqlShimTest extends \PHPUnit_Framework_TestCase
while ($row = mysql_fetch_assoc($result)) {
$i++;
$this->assertEquals(
- [
+ array(
'Field',
'Type',
'Null',
'Key',
'Default',
'Extra'
- ],
+ ),
array_keys($row)
);
}
@@ -448,11 +450,13 @@ class MySqlShimTest extends \PHPUnit_Framework_TestCase
{
$this->skipForHHVM();
- $this->expectException(\PHPUnit_Framework_Error_Warning::class);
- $this->expectExceptionMessage('mysql_list_fields(): Unable to save MySQL query result');
-
- $this->getConnection();
- mysql_list_fields("shim_test", "nonexistent");
+ try {
+ $this->getConnection();
+ mysql_list_fields("shim_test", "nonexistent");
+ } catch (\Exception $e) {
+ $this->assertInstanceOf('\PHPUnit_Framework_Error_Warning', $e);
+ $this->assertEquals('mysql_list_fields(): Unable to save MySQL query result', $e->getMessage());
+ }
}
public function test_mysql_field()
@@ -621,13 +625,16 @@ class MySqlShimTest extends \PHPUnit_Framework_TestCase
{
$this->skipForHHVM($skipHHVM);
- $this->expectException(\PHPUnit_Framework_Error_Warning::class);
- $this->expectExceptionMessageRegExp('@' . $error . '@');
-
- if ($args !== []) {
- $function(null, ...$args);
+ try {
+ if ($args !== array()) {
+ array_unshift($args, null);
+ call_user_func_array($function, $args);
+ }
+ call_user_func($function, null);
+ } catch (\Exception $e) {
+ $this->assertInstanceOf('\PHPUnit_Framework_Error_Warning', $e);
+ $this->assertRegExp('@' . $error . '@', $e->getMessage());
}
- $function(null);
}
/**
@@ -784,10 +791,12 @@ class MySqlShimTest extends \PHPUnit_Framework_TestCase
{
$this->skipForHHVM();
- $this->expectException(\PHPUnit_Framework_Error_Warning::class);
- $this->expectExceptionMessage("mysql_close(): no MySQL-Link resource supplied");
-
- mysql_close();
+ try {
+ mysql_close();
+ } catch (\Exception $e) {
+ $this->assertInstanceOf('\PHPUnit_Framework_Error_Warning', $e);
+ $this->assertEquals("mysql_close(): no MySQL-Link resource supplied", $e->getMessage());
+ }
}
public function test_mysql_error()
@@ -894,7 +903,7 @@ class MySqlShimTest extends \PHPUnit_Framework_TestCase
}
- static::$host = 'localhost';
+ static::$host = '0.0.0.0';
}
public static function tearDownAfterClass()
@@ -924,186 +933,186 @@ class MySqlShimTest extends \PHPUnit_Framework_TestCase
public function mysql_fetch_DataProvider()
{
- $numeric = [
- ['1', '1'],
- ['2', '2'],
- ['3', '3'],
- ['4', '4'],
- ];
-
- $assoc = [
- ['one' => '1', 'two' => '1'],
- ['one' => '2', 'two' => '2'],
- ['one' => '3', 'two' => '3'],
- ['one' => '4', 'two' => '4'],
- ];
-
- $array = [
- ['1', '1', 'one' => '1', 'two' => '1'],
- ['2', '2', 'one' => '2', 'two' => '2'],
- ['3', '3', 'one' => '3', 'two' => '3'],
- ['4', '4', 'one' => '4', 'two' => '4'],
- ];
-
- $object = [
- (object) ['one' => '1', 'two' => '1'],
- (object) ['one' => '2', 'two' => '2'],
- (object) ['one' => '3', 'two' => '3'],
- (object) ['one' => '4', 'two' => '4'],
- ];
-
- return [
- [
+ $numeric = array(
+ array('1', '1'),
+ array('2', '2'),
+ array('3', '3'),
+ array('4', '4'),
+ );
+
+ $assoc = array(
+ array('one' => '1', 'two' => '1'),
+ array('one' => '2', 'two' => '2'),
+ array('one' => '3', 'two' => '3'),
+ array('one' => '4', 'two' => '4'),
+ );
+
+ $array = array(
+ array('1', '1', 'one' => '1', 'two' => '1'),
+ array('2', '2', 'one' => '2', 'two' => '2'),
+ array('3', '3', 'one' => '3', 'two' => '3'),
+ array('4', '4', 'one' => '4', 'two' => '4'),
+ );
+
+ $object = array(
+ (object) array('one' => '1', 'two' => '1'),
+ (object) array('one' => '2', 'two' => '2'),
+ (object) array('one' => '3', 'two' => '3'),
+ (object) array('one' => '4', 'two' => '4'),
+ );
+
+ return array(
+ array(
'function' => 'mysql_fetch_array',
'results' => $assoc,
'resultType' => MYSQL_ASSOC
- ],
- [
+ ),
+ array(
'function' => 'mysql_fetch_array',
'results' => $array,
'resultType' => MYSQL_BOTH
- ],
- [
+ ),
+ array(
'function' => 'mysql_fetch_array',
'results' => $numeric,
'resultType' => MYSQL_NUM
- ],
- [
+ ),
+ array(
'function' => 'mysql_fetch_assoc',
'results' => $assoc
- ],
- [
+ ),
+ array(
'function' => 'mysql_fetch_row',
'results' => $numeric
- ],
- [
+ ),
+ array(
'function' => 'mysql_fetch_object',
'results' => $object,
- ]
- ];
+ )
+ );
}
public function mysql_fetch_no_rows_dataProvider()
{
- return [
- [
+ return array(
+ array(
'function' => 'mysql_fetch_array',
- ],
- [
+ ),
+ array(
'function' => 'mysql_fetch_assoc',
- ],
- [
+ ),
+ array(
'function' => 'mysql_fetch_row',
- ],
- [
+ ),
+ array(
'function' => 'mysql_fetch_object',
- ],
- ];
+ ),
+ );
}
public function mysql_function_invalid_result_DataProvider()
{
- return [
- [
+ return array(
+ array(
"function" => "mysql_result",
"message" => "mysql_result\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [0]
- ],
- [
+ "args" => array(0)
+ ),
+ array(
"function" => "mysql_num_rows",
"message" => "mysql_num_rows\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [],
- ],
- [
+ "args" => array(),
+ ),
+ array(
"function" => "mysql_num_fields",
"message" => "mysql_num_fields\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [],
- ],
- [
+ "args" => array(),
+ ),
+ array(
"function" => "mysql_fetch_row",
"message" => "mysql_fetch_row\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [],
+ "args" => array(),
"skipHHVM" => true
- ],
- [
+ ),
+ array(
"function" => "mysql_fetch_array",
"message" => "mysql_fetch_array\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [],
- ],
- [
+ "args" => array(),
+ ),
+ array(
"function" => "mysql_fetch_assoc",
"message" => "mysql_fetch_assoc\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [],
+ "args" => array(),
"skipHHVM" => true
- ],
- [
+ ),
+ array(
"function" => "mysql_fetch_object",
"message" => "(mysql_fetch_object\(\): )?supplied argument is not a valid MySQL result resource",
- "args" => ["StdClass"]
- ],
- [
+ "args" => array("StdClass")
+ ),
+ array(
"function" => "mysql_data_seek",
"message" => "mysql_data_seek\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [0]
- ],
- [
+ "args" => array(0)
+ ),
+ array(
"function" => "mysql_fetch_lengths",
"message" => "mysql_fetch_lengths\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => []
- ],
- [
+ "args" => array()
+ ),
+ array(
"function" => "mysql_fetch_field",
"message" => "mysql_fetch_field\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => []
- ],
- [
+ "args" => array()
+ ),
+ array(
"function" => "mysql_field_seek",
"message" => "mysql_field_seek\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [0]
- ],
- [
+ "args" => array(0)
+ ),
+ array(
"function" => "mysql_free_result",
"message" => "mysql_free_result\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => []
- ],
- [
+ "args" => array()
+ ),
+ array(
"function" => "mysql_field_name",
"message" => "mysql_field_name\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [0]
- ],
- [
+ "args" => array(0)
+ ),
+ array(
"function" => "mysql_field_table",
"message" => "mysql_field_table\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [0]
- ],
- [
+ "args" => array(0)
+ ),
+ array(
"function" => "mysql_field_len",
"message" => "mysql_field_len\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [0]
- ],
- [
+ "args" => array(0)
+ ),
+ array(
"function" => "mysql_field_type",
"message" => "mysql_field_type\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [0]
- ],
- [
+ "args" => array(0)
+ ),
+ array(
"function" => "mysql_field_flags",
"message" => "mysql_field_flags\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [0]
- ],
- [
+ "args" => array(0)
+ ),
+ array(
"function" => "mysql_db_name",
"message" => "mysql_db_name\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [0],
+ "args" => array(0),
"skipHHVM" => true
- ],
- [
+ ),
+ array(
"function" => "mysql_tablename",
"message" => "mysql_tablename\(\) expects parameter 1 to be resource, (null|NULL) given",
- "args" => [0],
+ "args" => array(0),
"skipHHVM" => true
- ],
- ];
+ ),
+ );
}
/**