Update phpunit to 6.0

This commit is contained in:
Arkadiusz Kondas 2017-02-03 12:58:25 +01:00
parent 8f122fde90
commit 858d13b0fa
58 changed files with 251 additions and 253 deletions

View File

@ -3,7 +3,7 @@
"type": "library",
"description": "PHP-ML - Machine Learning library for PHP",
"license": "MIT",
"keywords": ["machine learning","pattern recognition","neural network","computational learning theory","artificial intelligence"],
"keywords": ["machine learning","pattern recognition","neural network","computational learning theory","artificial intelligence","data science","feature extraction"],
"homepage": "https://github.com/php-ai/php-ml",
"authors": [
{
@ -20,7 +20,7 @@
"php": ">=7.0.0"
},
"require-dev": {
"phpunit/phpunit": "^5.5"
"phpunit/phpunit": "^6.0"
},
"config": {
"bin-dir": "bin"

323
composer.lock generated
View File

@ -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": "471cccec358c6643fd2526258b91a0ba",
"content-hash": "be926d8a68fbc47e08c64340c062a392",
"content-hash": "626dba6a3c956ec66be5958c37001a67",
"packages": [],
"packages-dev": [
{
@ -60,20 +59,20 @@
"constructor",
"instantiate"
],
"time": "2015-06-14 21:17:01"
"time": "2015-06-14T21:17:01+00:00"
},
{
"name": "myclabs/deep-copy",
"version": "1.5.4",
"version": "1.6.0",
"source": {
"type": "git",
"url": "https://github.com/myclabs/DeepCopy.git",
"reference": "ea74994a3dc7f8d2f65a06009348f2d63c81e61f"
"reference": "5a5a9fc8025a08d8919be87d6884d5a92520cefe"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/ea74994a3dc7f8d2f65a06009348f2d63c81e61f",
"reference": "ea74994a3dc7f8d2f65a06009348f2d63c81e61f",
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/5a5a9fc8025a08d8919be87d6884d5a92520cefe",
"reference": "5a5a9fc8025a08d8919be87d6884d5a92520cefe",
"shasum": ""
},
"require": {
@ -102,7 +101,7 @@
"object",
"object graph"
],
"time": "2016-09-16 13:37:59"
"time": "2017-01-26T22:05:40+00:00"
},
{
"name": "phpdocumentor/reflection-common",
@ -156,20 +155,20 @@
"reflection",
"static analysis"
],
"time": "2015-12-27 11:43:31"
"time": "2015-12-27T11:43:31+00:00"
},
{
"name": "phpdocumentor/reflection-docblock",
"version": "3.1.0",
"version": "3.1.1",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
"reference": "9270140b940ff02e58ec577c237274e92cd40cdd"
"reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/9270140b940ff02e58ec577c237274e92cd40cdd",
"reference": "9270140b940ff02e58ec577c237274e92cd40cdd",
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/8331b5efe816ae05461b7ca1e721c01b46bafb3e",
"reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e",
"shasum": ""
},
"require": {
@ -201,20 +200,20 @@
}
],
"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-06-10 09:48:41"
"time": "2016-09-30T07:12:33+00:00"
},
{
"name": "phpdocumentor/type-resolver",
"version": "0.2",
"version": "0.2.1",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/TypeResolver.git",
"reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443"
"reference": "e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/b39c7a5b194f9ed7bd0dd345c751007a41862443",
"reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443",
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb",
"reference": "e224fb2ea2fba6d3ad6fdaef91cd09a172155ccb",
"shasum": ""
},
"require": {
@ -248,20 +247,20 @@
"email": "me@mikevanriel.com"
}
],
"time": "2016-06-10 07:14:17"
"time": "2016-11-25T06:54:22+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": {
@ -269,10 +268,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": {
@ -310,44 +310,43 @@
"spy",
"stub"
],
"time": "2016-06-07 08:13:47"
"time": "2016-11-21T14:58:47+00:00"
},
{
"name": "phpunit/php-code-coverage",
"version": "4.0.1",
"version": "5.0.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
"reference": "5f3f7e736d6319d5f1fc402aff8b026da26709a3"
"reference": "e7d7a4acca58e45bdfd00221563d131cfb04ba96"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/5f3f7e736d6319d5f1fc402aff8b026da26709a3",
"reference": "5f3f7e736d6319d5f1fc402aff8b026da26709a3",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/e7d7a4acca58e45bdfd00221563d131cfb04ba96",
"reference": "e7d7a4acca58e45bdfd00221563d131cfb04ba96",
"shasum": ""
},
"require": {
"php": "^5.6 || ^7.0",
"phpunit/php-file-iterator": "~1.3",
"phpunit/php-text-template": "~1.2",
"php": "^7.0",
"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"
"sebastian/code-unit-reverse-lookup": "^1.0",
"sebastian/environment": "^2.0",
"sebastian/version": "^2.0"
},
"require-dev": {
"ext-xdebug": ">=2.1.4",
"phpunit/phpunit": "^5.4"
"ext-xdebug": "^2.5",
"phpunit/phpunit": "^6.0"
},
"suggest": {
"ext-dom": "*",
"ext-xdebug": ">=2.4.0",
"ext-xmlwriter": "*"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "4.0.x-dev"
"dev-master": "5.0.x-dev"
}
},
"autoload": {
@ -373,20 +372,20 @@
"testing",
"xunit"
],
"time": "2016-07-26 14:39:29"
"time": "2017-02-02T10:35:41+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": {
@ -420,7 +419,7 @@
"filesystem",
"iterator"
],
"time": "2015-06-21 13:08:43"
"time": "2016-10-03T07:40:28+00:00"
},
{
"name": "phpunit/php-text-template",
@ -461,7 +460,7 @@
"keywords": [
"template"
],
"time": "2015-06-21 13:50:34"
"time": "2015-06-21T13:50:34+00:00"
},
{
"name": "phpunit/php-timer",
@ -505,20 +504,20 @@
"keywords": [
"timer"
],
"time": "2016-05-12 18:03:57"
"time": "2016-05-12T18:03:57+00:00"
},
{
"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": {
@ -554,20 +553,20 @@
"keywords": [
"tokenizer"
],
"time": "2015-09-15 10:49:45"
"time": "2016-11-15T14:06:22+00:00"
},
{
"name": "phpunit/phpunit",
"version": "5.5.5",
"version": "6.0.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "a57126dc681b08289fef6ac96a48e30656f84350"
"reference": "93a57ef4b0754737ac73604c5f51abf675d925d8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a57126dc681b08289fef6ac96a48e30656f84350",
"reference": "a57126dc681b08289fef6ac96a48e30656f84350",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/93a57ef4b0754737ac73604c5f51abf675d925d8",
"reference": "93a57ef4b0754737ac73604c5f51abf675d925d8",
"shasum": ""
},
"require": {
@ -576,34 +575,33 @@
"ext-libxml": "*",
"ext-mbstring": "*",
"ext-xml": "*",
"myclabs/deep-copy": "~1.3",
"php": "^5.6 || ^7.0",
"phpspec/prophecy": "^1.3.1",
"phpunit/php-code-coverage": "^4.0.1",
"phpunit/php-file-iterator": "~1.4",
"phpunit/php-text-template": "~1.2",
"myclabs/deep-copy": "^1.3",
"php": "^7.0",
"phpspec/prophecy": "^1.6.2",
"phpunit/php-code-coverage": "^5.0",
"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",
"sebastian/diff": "~1.2",
"sebastian/environment": "^1.3 || ^2.0",
"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",
"symfony/yaml": "~2.1|~3.0"
"phpunit/phpunit-mock-objects": "^4.0",
"sebastian/comparator": "^1.2.4",
"sebastian/diff": "^1.2",
"sebastian/environment": "^2.0",
"sebastian/exporter": "^2.0",
"sebastian/global-state": "^1.1",
"sebastian/object-enumerator": "^2.0",
"sebastian/resource-operations": "^1.0",
"sebastian/version": "^2.0"
},
"conflict": {
"phpdocumentor/reflection-docblock": "3.0.2"
"phpdocumentor/reflection-docblock": "3.0.2",
"phpunit/dbunit": "<3.0"
},
"require-dev": {
"ext-pdo": "*"
},
"suggest": {
"ext-tidy": "*",
"ext-xdebug": "*",
"phpunit/php-invoker": "~1.1"
"phpunit/php-invoker": "^1.1"
},
"bin": [
"phpunit"
@ -611,7 +609,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "5.5.x-dev"
"dev-master": "6.0.x-dev"
}
},
"autoload": {
@ -637,33 +635,33 @@
"testing",
"xunit"
],
"time": "2016-09-21 14:40:13"
"time": "2017-02-03T11:40:20+00:00"
},
{
"name": "phpunit/phpunit-mock-objects",
"version": "3.2.7",
"version": "4.0.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
"reference": "546898a2c0c356ef2891b39dd7d07f5d82c8ed0a"
"reference": "3819745c44f3aff9518fd655f320c4535d541af7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/546898a2c0c356ef2891b39dd7d07f5d82c8ed0a",
"reference": "546898a2c0c356ef2891b39dd7d07f5d82c8ed0a",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/3819745c44f3aff9518fd655f320c4535d541af7",
"reference": "3819745c44f3aff9518fd655f320c4535d541af7",
"shasum": ""
},
"require": {
"doctrine/instantiator": "^1.0.2",
"php": "^5.6 || ^7.0",
"php": "^7.0",
"phpunit/php-text-template": "^1.2",
"sebastian/exporter": "^1.2"
"sebastian/exporter": "^2.0"
},
"conflict": {
"phpunit/phpunit": "<5.4.0"
"phpunit/phpunit": "<6.0"
},
"require-dev": {
"phpunit/phpunit": "^5.4"
"phpunit/phpunit": "^6.0"
},
"suggest": {
"ext-soap": "*"
@ -671,7 +669,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.2.x-dev"
"dev-master": "4.0.x-dev"
}
},
"autoload": {
@ -696,7 +694,7 @@
"mock",
"xunit"
],
"time": "2016-09-06 16:07:45"
"time": "2017-02-02T10:36:38+00:00"
},
{
"name": "sebastian/code-unit-reverse-lookup",
@ -741,26 +739,26 @@
],
"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-13 06:45:14"
"time": "2016-02-13T06:45:14+00:00"
},
{
"name": "sebastian/comparator",
"version": "1.2.0",
"version": "1.2.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git",
"reference": "937efb279bd37a375bcadf584dec0726f84dbf22"
"reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/937efb279bd37a375bcadf584dec0726f84dbf22",
"reference": "937efb279bd37a375bcadf584dec0726f84dbf22",
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
"reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be",
"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"
@ -805,7 +803,7 @@
"compare",
"equality"
],
"time": "2015-07-26 15:48:44"
"time": "2017-01-29T09:50:25+00:00"
},
{
"name": "sebastian/diff",
@ -857,32 +855,32 @@
"keywords": [
"diff"
],
"time": "2015-12-08 07:14:41"
"time": "2015-12-08T07:14:41+00:00"
},
{
"name": "sebastian/environment",
"version": "1.3.8",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/environment.git",
"reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea"
"reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/be2c607e43ce4c89ecd60e75c6a85c126e754aea",
"reference": "be2c607e43ce4c89ecd60e75c6a85c126e754aea",
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
"reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac",
"shasum": ""
},
"require": {
"php": "^5.3.3 || ^7.0"
"php": "^5.6 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8 || ^5.0"
"phpunit/phpunit": "^5.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.3.x-dev"
"dev-master": "2.0.x-dev"
}
},
"autoload": {
@ -907,25 +905,25 @@
"environment",
"hhvm"
],
"time": "2016-08-18 05:49:44"
"time": "2016-11-26T07:53:53+00:00"
},
{
"name": "sebastian/exporter",
"version": "1.2.2",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/exporter.git",
"reference": "42c4c2eec485ee3e159ec9884f95b431287edde4"
"reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4",
"reference": "42c4c2eec485ee3e159ec9884f95b431287edde4",
"url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
"reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4",
"shasum": ""
},
"require": {
"php": ">=5.3.3",
"sebastian/recursion-context": "~1.0"
"sebastian/recursion-context": "~2.0"
},
"require-dev": {
"ext-mbstring": "*",
@ -934,7 +932,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.3.x-dev"
"dev-master": "2.0.x-dev"
}
},
"autoload": {
@ -974,7 +972,7 @@
"export",
"exporter"
],
"time": "2016-06-17 09:04:28"
"time": "2016-11-19T08:54:04+00:00"
},
{
"name": "sebastian/global-state",
@ -1025,25 +1023,25 @@
"keywords": [
"global state"
],
"time": "2015-10-12 03:26:01"
"time": "2015-10-12T03:26:01+00:00"
},
{
"name": "sebastian/object-enumerator",
"version": "1.0.0",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/object-enumerator.git",
"reference": "d4ca2fb70344987502567bc50081c03e6192fb26"
"reference": "96f8a3f257b69e8128ad74d3a7fd464bcbaa3b35"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/d4ca2fb70344987502567bc50081c03e6192fb26",
"reference": "d4ca2fb70344987502567bc50081c03e6192fb26",
"url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/96f8a3f257b69e8128ad74d3a7fd464bcbaa3b35",
"reference": "96f8a3f257b69e8128ad74d3a7fd464bcbaa3b35",
"shasum": ""
},
"require": {
"php": ">=5.6",
"sebastian/recursion-context": "~1.0"
"sebastian/recursion-context": "~2.0"
},
"require-dev": {
"phpunit/phpunit": "~5"
@ -1051,7 +1049,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
"dev-master": "2.0.x-dev"
}
},
"autoload": {
@ -1071,20 +1069,20 @@
],
"description": "Traverses array structures and object graphs to enumerate all referenced objects",
"homepage": "https://github.com/sebastianbergmann/object-enumerator/",
"time": "2016-01-28 13:25:10"
"time": "2016-11-19T07:35:10+00:00"
},
{
"name": "sebastian/recursion-context",
"version": "1.0.2",
"version": "2.0.0",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/recursion-context.git",
"reference": "913401df809e99e4f47b27cdd781f4a258d58791"
"reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/913401df809e99e4f47b27cdd781f4a258d58791",
"reference": "913401df809e99e4f47b27cdd781f4a258d58791",
"url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a",
"reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a",
"shasum": ""
},
"require": {
@ -1096,7 +1094,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
"dev-master": "2.0.x-dev"
}
},
"autoload": {
@ -1124,7 +1122,7 @@
],
"description": "Provides functionality to recursively process PHP variables",
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
"time": "2015-11-11 19:50:13"
"time": "2016-11-19T07:33:16+00:00"
},
{
"name": "sebastian/resource-operations",
@ -1166,20 +1164,20 @@
],
"description": "Provides a list of PHP built-in functions that operate on resources",
"homepage": "https://www.github.com/sebastianbergmann/resource-operations",
"time": "2015-07-28 20:34:47"
"time": "2015-07-28T20:34:47+00:00"
},
{
"name": "sebastian/version",
"version": "2.0.0",
"version": "2.0.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/version.git",
"reference": "c829badbd8fdf16a0bad8aa7fa7971c029f1b9c5"
"reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c829badbd8fdf16a0bad8aa7fa7971c029f1b9c5",
"reference": "c829badbd8fdf16a0bad8aa7fa7971c029f1b9c5",
"url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
"reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
"shasum": ""
},
"require": {
@ -1209,73 +1207,24 @@
],
"description": "Library that helps with managing the version number of Git-hosted PHP projects",
"homepage": "https://github.com/sebastianbergmann/version",
"time": "2016-02-04 12:56:52"
},
{
"name": "symfony/yaml",
"version": "v3.1.4",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
"reference": "f291ed25eb1435bddbe8a96caaef16469c2a092d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/f291ed25eb1435bddbe8a96caaef16469c2a092d",
"reference": "f291ed25eb1435bddbe8a96caaef16469c2a092d",
"shasum": ""
},
"require": {
"php": ">=5.5.9"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.1-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Component\\Yaml\\": ""
},
"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 Yaml Component",
"homepage": "https://symfony.com",
"time": "2016-09-02 02:12:52"
"time": "2016-10-03T07:35:21+00:00"
},
{
"name": "webmozart/assert",
"version": "1.1.0",
"version": "1.2.0",
"source": {
"type": "git",
"url": "https://github.com/webmozart/assert.git",
"reference": "bb2d123231c095735130cc8f6d31385a44c7b308"
"reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webmozart/assert/zipball/bb2d123231c095735130cc8f6d31385a44c7b308",
"reference": "bb2d123231c095735130cc8f6d31385a44c7b308",
"url": "https://api.github.com/repos/webmozart/assert/zipball/2db61e59ff05fe5126d152bd0655c9ea113e550f",
"reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f",
"shasum": ""
},
"require": {
"php": "^5.3.3|^7.0"
"php": "^5.3.3 || ^7.0"
},
"require-dev": {
"phpunit/phpunit": "^4.6",
@ -1284,7 +1233,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.2-dev"
"dev-master": "1.3-dev"
}
},
"autoload": {
@ -1308,7 +1257,7 @@
"check",
"validate"
],
"time": "2016-08-09 15:02:57"
"time": "2016-11-23T20:04:58+00:00"
}
],
"aliases": [],

View File

@ -26,5 +26,4 @@ class SerializeException extends \Exception
{
return new self(sprintf('Class "%s" can not be serialized.', $classname));
}
}

View File

@ -6,8 +6,9 @@ namespace tests\Classification;
use Phpml\Association\Apriori;
use Phpml\ModelManager;
use PHPUnit\Framework\TestCase;
class AprioriTest extends \PHPUnit_Framework_TestCase
class AprioriTest extends TestCase
{
private $sampleGreek = [
['alpha', 'beta', 'epsilon'],

View File

@ -6,8 +6,9 @@ namespace tests\Classification;
use Phpml\Classification\DecisionTree;
use Phpml\ModelManager;
use PHPUnit\Framework\TestCase;
class DecisionTreeTest extends \PHPUnit_Framework_TestCase
class DecisionTreeTest extends TestCase
{
private $data = [
['sunny', 85, 85, 'false', 'Dont_play' ],
@ -73,7 +74,6 @@ class DecisionTreeTest extends \PHPUnit_Framework_TestCase
$restoredClassifier = $modelManager->restoreFromFile($filepath);
$this->assertEquals($classifier, $restoredClassifier);
$this->assertEquals($predicted, $restoredClassifier->predict($testSamples));
}
public function testTreeDepth()

View File

@ -7,8 +7,9 @@ namespace tests\Classification;
use Phpml\Classification\KNearestNeighbors;
use Phpml\Math\Distance\Chebyshev;
use Phpml\ModelManager;
use PHPUnit\Framework\TestCase;
class KNearestNeighborsTest extends \PHPUnit_Framework_TestCase
class KNearestNeighborsTest extends TestCase
{
public function testPredictSingleSampleWithDefaultK()
{

View File

@ -6,8 +6,9 @@ namespace tests\Classification;
use Phpml\Classification\NaiveBayes;
use Phpml\ModelManager;
use PHPUnit\Framework\TestCase;
class NaiveBayesTest extends \PHPUnit_Framework_TestCase
class NaiveBayesTest extends TestCase
{
public function testPredictSingleSample()
{
@ -44,7 +45,6 @@ class NaiveBayesTest extends \PHPUnit_Framework_TestCase
$testSamples = [[1, 1, 6], [5, 1, 1]];
$testLabels = ['d', 'a'];
$this->assertEquals($testLabels, $classifier->predict($testSamples));
}
public function testSaveAndRestore()
@ -68,5 +68,4 @@ class NaiveBayesTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($classifier, $restoredClassifier);
$this->assertEquals($predicted, $restoredClassifier->predict($testSamples));
}
}

View File

@ -7,8 +7,9 @@ namespace tests\Classification;
use Phpml\Classification\SVC;
use Phpml\SupportVectorMachine\Kernel;
use Phpml\ModelManager;
use PHPUnit\Framework\TestCase;
class SVCTest extends \PHPUnit_Framework_TestCase
class SVCTest extends TestCase
{
public function testPredictSingleSampleWithLinearKernel()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Clustering;
use Phpml\Clustering\DBSCAN;
use PHPUnit\Framework\TestCase;
class DBSCANTest extends \PHPUnit_Framework_TestCase
class DBSCANTest extends TestCase
{
public function testDBSCANSamplesClustering()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Clustering;
use Phpml\Clustering\FuzzyCMeans;
use PHPUnit\Framework\TestCase;
class FuzzyCMeansTest extends \PHPUnit_Framework_TestCase
class FuzzyCMeansTest extends TestCase
{
public function testFCMSamplesClustering()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Clustering;
use Phpml\Clustering\KMeans;
use PHPUnit\Framework\TestCase;
class KMeansTest extends \PHPUnit_Framework_TestCase
class KMeansTest extends TestCase
{
public function testKMeansSamplesClustering()
{

View File

@ -6,8 +6,9 @@ namespace tests\Phpml\CrossValidation;
use Phpml\CrossValidation\RandomSplit;
use Phpml\Dataset\ArrayDataset;
use PHPUnit\Framework\TestCase;
class RandomSplitTest extends \PHPUnit_Framework_TestCase
class RandomSplitTest extends TestCase
{
/**
* @expectedException \Phpml\Exception\InvalidArgumentException

View File

@ -6,8 +6,9 @@ namespace tests\Phpml\CrossValidation;
use Phpml\CrossValidation\StratifiedRandomSplit;
use Phpml\Dataset\ArrayDataset;
use PHPUnit\Framework\TestCase;
class StratifiedRandomSplitTest extends \PHPUnit_Framework_TestCase
class StratifiedRandomSplitTest extends TestCase
{
public function testDatasetStratifiedRandomSplitWithEvenDistribution()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Dataset;
use Phpml\Dataset\ArrayDataset;
use PHPUnit\Framework\TestCase;
class ArrayDatasetTest extends \PHPUnit_Framework_TestCase
class ArrayDatasetTest extends TestCase
{
/**
* @expectedException \Phpml\Exception\InvalidArgumentException

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Dataset;
use Phpml\Dataset\CsvDataset;
use PHPUnit\Framework\TestCase;
class CsvDatasetTest extends \PHPUnit_Framework_TestCase
class CsvDatasetTest extends TestCase
{
/**
* @expectedException \Phpml\Exception\FileException

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Dataset\Demo;
use Phpml\Dataset\Demo\GlassDataset;
use PHPUnit\Framework\TestCase;
class GlassDatasetTest extends \PHPUnit_Framework_TestCase
class GlassDatasetTest extends TestCase
{
public function testLoadingWineDataset()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Dataset\Demo;
use Phpml\Dataset\Demo\IrisDataset;
use PHPUnit\Framework\TestCase;
class IrisDatasetTest extends \PHPUnit_Framework_TestCase
class IrisDatasetTest extends TestCase
{
public function testLoadingIrisDataset()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Dataset\Demo;
use Phpml\Dataset\Demo\WineDataset;
use PHPUnit\Framework\TestCase;
class WineDatasetTest extends \PHPUnit_Framework_TestCase
class WineDatasetTest extends TestCase
{
public function testLoadingWineDataset()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Dataset;
use Phpml\Dataset\FilesDataset;
use PHPUnit\Framework\TestCase;
class FilesDatasetTest extends \PHPUnit_Framework_TestCase
class FilesDatasetTest extends TestCase
{
/**
* @expectedException \Phpml\Exception\DatasetException

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\FeatureExtraction;
use Phpml\FeatureExtraction\StopWords;
use PHPUnit\Framework\TestCase;
class StopWordsTest extends \PHPUnit_Framework_TestCase
class StopWordsTest extends TestCase
{
public function testCustomStopWords()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\FeatureExtraction;
use Phpml\FeatureExtraction\TfIdfTransformer;
use PHPUnit\Framework\TestCase;
class TfIdfTransformerTest extends \PHPUnit_Framework_TestCase
class TfIdfTransformerTest extends TestCase
{
public function testTfIdfTransformation()
{

View File

@ -7,8 +7,9 @@ namespace tests\Phpml\FeatureExtraction;
use Phpml\FeatureExtraction\StopWords;
use Phpml\FeatureExtraction\TokenCountVectorizer;
use Phpml\Tokenization\WhitespaceTokenizer;
use PHPUnit\Framework\TestCase;
class TokenCountVectorizerTest extends \PHPUnit_Framework_TestCase
class TokenCountVectorizerTest extends TestCase
{
public function testTransformationWithWhitespaceTokenizer()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Metric;
use Phpml\Math\Distance\Chebyshev;
use PHPUnit\Framework\TestCase;
class ChebyshevTest extends \PHPUnit_Framework_TestCase
class ChebyshevTest extends TestCase
{
/**
* @var Chebyshev

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Metric;
use Phpml\Math\Distance\Euclidean;
use PHPUnit\Framework\TestCase;
class EuclideanTest extends \PHPUnit_Framework_TestCase
class EuclideanTest extends TestCase
{
/**
* @var Euclidean

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Metric;
use Phpml\Math\Distance\Manhattan;
use PHPUnit\Framework\TestCase;
class ManhattanTest extends \PHPUnit_Framework_TestCase
class ManhattanTest extends TestCase
{
/**
* @var Manhattan

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Metric;
use Phpml\Math\Distance\Minkowski;
use PHPUnit\Framework\TestCase;
class MinkowskiTest extends \PHPUnit_Framework_TestCase
class MinkowskiTest extends TestCase
{
/**
* @var Minkowski

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace test\Phpml\Math\Kernel;
use Phpml\Math\Kernel\RBF;
use PHPUnit\Framework\TestCase;
class RBFTest extends \PHPUnit_Framework_TestCase
class RBFTest extends TestCase
{
public function testComputeRBFKernelFunction()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Math;
use Phpml\Math\Matrix;
use PHPUnit\Framework\TestCase;
class MatrixTest extends \PHPUnit_Framework_TestCase
class MatrixTest extends TestCase
{
/**
* @expectedException \Phpml\Exception\InvalidArgumentException

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Math;
use Phpml\Math\Product;
use PHPUnit\Framework\TestCase;
class ProductTest extends \PHPUnit_Framework_TestCase
class ProductTest extends TestCase
{
public function testScalarProduct()
{

View File

@ -1,10 +1,13 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
namespace tests\Phpml\Math;
use Phpml\Math\Set;
use PHPUnit\Framework\TestCase;
class SetTest extends \PHPUnit_Framework_TestCase
class SetTest extends TestCase
{
public function testUnion()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace test\Phpml\Math\StandardDeviation;
use Phpml\Math\Statistic\Correlation;
use PHPUnit\Framework\TestCase;
class CorrelationTest extends \PHPUnit_Framework_TestCase
class CorrelationTest extends TestCase
{
public function testPearsonCorrelation()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace test\Phpml\Math\StandardDeviation;
use Phpml\Math\Statistic\Mean;
use PHPUnit\Framework\TestCase;
class MeanTest extends \PHPUnit_Framework_TestCase
class MeanTest extends TestCase
{
/**
* @expectedException \Phpml\Exception\InvalidArgumentException

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace test\Phpml\Math\StandardDeviation;
use Phpml\Math\Statistic\StandardDeviation;
use PHPUnit\Framework\TestCase;
class StandardDeviationTest extends \PHPUnit_Framework_TestCase
class StandardDeviationTest extends TestCase
{
public function testStandardDeviationOfPopulationSample()
{

View File

@ -9,8 +9,9 @@ use Phpml\CrossValidation\RandomSplit;
use Phpml\Dataset\Demo\IrisDataset;
use Phpml\Metric\Accuracy;
use Phpml\SupportVectorMachine\Kernel;
use PHPUnit\Framework\TestCase;
class AccuracyTest extends \PHPUnit_Framework_TestCase
class AccuracyTest extends TestCase
{
/**
* @expectedException \Phpml\Exception\InvalidArgumentException

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Metric;
use Phpml\Metric\ClassificationReport;
use PHPUnit\Framework\TestCase;
class ClassificationReportTest extends \PHPUnit_Framework_TestCase
class ClassificationReportTest extends TestCase
{
public function testClassificationReportGenerateWithStringLabels()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\Metric;
use Phpml\Metric\ConfusionMatrix;
use PHPUnit\Framework\TestCase;
class ConfusionMatrixTest extends \PHPUnit_Framework_TestCase
class ConfusionMatrixTest extends TestCase
{
public function testComputeConfusionMatrixOnNumericLabels()
{

View File

@ -6,10 +6,10 @@ namespace tests;
use Phpml\ModelManager;
use Phpml\Regression\LeastSquares;
use PHPUnit\Framework\TestCase;
class ModelManagerTest extends \PHPUnit_Framework_TestCase
class ModelManagerTest extends TestCase
{
public function testSaveAndRestore()
{
$filename = 'test-save-to-file-'.rand(100, 999).'-'.uniqid();

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\NeuralNetwork\ActivationFunction;
use Phpml\NeuralNetwork\ActivationFunction\BinaryStep;
use PHPUnit\Framework\TestCase;
class BinaryStepTest extends \PHPUnit_Framework_TestCase
class BinaryStepTest extends TestCase
{
/**
* @param $expected

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\NeuralNetwork\ActivationFunction;
use Phpml\NeuralNetwork\ActivationFunction\Gaussian;
use PHPUnit\Framework\TestCase;
class GaussianTest extends \PHPUnit_Framework_TestCase
class GaussianTest extends TestCase
{
/**
* @param $expected

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\NeuralNetwork\ActivationFunction;
use Phpml\NeuralNetwork\ActivationFunction\HyperbolicTangent;
use PHPUnit\Framework\TestCase;
class HyperboliTangentTest extends \PHPUnit_Framework_TestCase
class HyperboliTangentTest extends TestCase
{
/**
* @param $beta

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\NeuralNetwork\ActivationFunction;
use Phpml\NeuralNetwork\ActivationFunction\Sigmoid;
use PHPUnit\Framework\TestCase;
class SigmoidTest extends \PHPUnit_Framework_TestCase
class SigmoidTest extends TestCase
{
/**
* @param $beta

View File

@ -7,8 +7,9 @@ namespace tests\Phpml\NeuralNetwork;
use Phpml\NeuralNetwork\Node\Bias;
use Phpml\NeuralNetwork\Layer;
use Phpml\NeuralNetwork\Node\Neuron;
use PHPUnit\Framework\TestCase;
class LayerTest extends \PHPUnit_Framework_TestCase
class LayerTest extends TestCase
{
public function testLayerInitialization()
{

View File

@ -7,8 +7,9 @@ namespace tests\Phpml\NeuralNetwork\Network;
use Phpml\NeuralNetwork\Layer;
use Phpml\NeuralNetwork\Network\LayeredNetwork;
use Phpml\NeuralNetwork\Node\Input;
use PHPUnit\Framework\TestCase;
class LayeredNetworkTest extends \PHPUnit_Framework_TestCase
class LayeredNetworkTest extends TestCase
{
public function testLayersSettersAndGetters()
{

View File

@ -6,8 +6,9 @@ namespace tests\Phpml\NeuralNetwork\Network;
use Phpml\NeuralNetwork\Network\MultilayerPerceptron;
use Phpml\NeuralNetwork\Node\Neuron;
use PHPUnit\Framework\TestCase;
class MultilayerPerceptronTest extends \PHPUnit_Framework_TestCase
class MultilayerPerceptronTest extends TestCase
{
public function testMultilayerPerceptronLayersInitialization()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\NeuralNetwork\Node;
use Phpml\NeuralNetwork\Node\Bias;
use PHPUnit\Framework\TestCase;
class BiasTest extends \PHPUnit_Framework_TestCase
class BiasTest extends TestCase
{
public function testBiasOutput()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Phpml\NeuralNetwork\Node;
use Phpml\NeuralNetwork\Node\Input;
use PHPUnit\Framework\TestCase;
class InputTest extends \PHPUnit_Framework_TestCase
class InputTest extends TestCase
{
public function testInputInitialization()
{

View File

@ -6,8 +6,9 @@ namespace tests\Phpml\NeuralNetwork\Node\Neuron;
use Phpml\NeuralNetwork\Node\Neuron\Synapse;
use Phpml\NeuralNetwork\Node\Neuron;
use PHPUnit\Framework\TestCase;
class SynapseTest extends \PHPUnit_Framework_TestCase
class SynapseTest extends TestCase
{
public function testSynapseInitialization()
{

View File

@ -7,8 +7,9 @@ namespace tests\Phpml\NeuralNetwork\Node;
use Phpml\NeuralNetwork\ActivationFunction\BinaryStep;
use Phpml\NeuralNetwork\Node\Neuron;
use Phpml\NeuralNetwork\Node\Neuron\Synapse;
use PHPUnit\Framework\TestCase;
class NeuronTest extends \PHPUnit_Framework_TestCase
class NeuronTest extends TestCase
{
public function testNeuronInitialization()
{

View File

@ -6,8 +6,9 @@ namespace tests\Phpml\NeuralNetwork\Training;
use Phpml\NeuralNetwork\Network\MultilayerPerceptron;
use Phpml\NeuralNetwork\Training\Backpropagation;
use PHPUnit\Framework\TestCase;
class BackpropagationTest extends \PHPUnit_Framework_TestCase
class BackpropagationTest extends TestCase
{
public function testBackpropagationForXORLearning()
{

View File

@ -11,8 +11,9 @@ use Phpml\Preprocessing\Imputer;
use Phpml\Preprocessing\Normalizer;
use Phpml\Preprocessing\Imputer\Strategy\MostFrequentStrategy;
use Phpml\Regression\SVR;
use PHPUnit\Framework\TestCase;
class PipelineTest extends \PHPUnit_Framework_TestCase
class PipelineTest extends TestCase
{
public function testPipelineConstruction()
{

View File

@ -8,8 +8,9 @@ use Phpml\Preprocessing\Imputer;
use Phpml\Preprocessing\Imputer\Strategy\MeanStrategy;
use Phpml\Preprocessing\Imputer\Strategy\MedianStrategy;
use Phpml\Preprocessing\Imputer\Strategy\MostFrequentStrategy;
use PHPUnit\Framework\TestCase;
class ImputerTest extends \PHPUnit_Framework_TestCase
class ImputerTest extends TestCase
{
public function testComplementsMissingValuesWithMeanStrategyOnColumnAxis()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Preprocessing;
use Phpml\Preprocessing\Normalizer;
use PHPUnit\Framework\TestCase;
class NormalizerTest extends \PHPUnit_Framework_TestCase
class NormalizerTest extends TestCase
{
/**
* @expectedException \Phpml\Exception\NormalizerException

View File

@ -6,8 +6,9 @@ namespace tests\Regression;
use Phpml\Regression\LeastSquares;
use Phpml\ModelManager;
use PHPUnit\Framework\TestCase;
class LeastSquaresTest extends \PHPUnit_Framework_TestCase
class LeastSquaresTest extends TestCase
{
public function testPredictSingleFeatureSamples()
{
@ -89,5 +90,4 @@ class LeastSquaresTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($regression, $restoredRegression);
$this->assertEquals($predicted, $restoredRegression->predict($testSamples));
}
}

View File

@ -7,8 +7,9 @@ namespace tests\Regression;
use Phpml\Regression\SVR;
use Phpml\SupportVectorMachine\Kernel;
use Phpml\ModelManager;
use PHPUnit\Framework\TestCase;
class SVRTest extends \PHPUnit_Framework_TestCase
class SVRTest extends TestCase
{
public function testPredictSingleFeatureSamples()
{
@ -38,7 +39,6 @@ class SVRTest extends \PHPUnit_Framework_TestCase
public function testSaveAndRestore()
{
$samples = [[60], [61], [62], [63], [65]];
$targets = [3.1, 3.6, 3.8, 4, 4.1];
@ -57,5 +57,4 @@ class SVRTest extends \PHPUnit_Framework_TestCase
$this->assertEquals($regression, $restoredRegression);
$this->assertEquals($predicted, $restoredRegression->predict($testSamples));
}
}

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\SupportVectorMachine;
use Phpml\SupportVectorMachine\DataTransformer;
use PHPUnit\Framework\TestCase;
class DataTransformerTest extends \PHPUnit_Framework_TestCase
class DataTransformerTest extends TestCase
{
public function testTransformDatasetToTrainingSet()
{

View File

@ -7,8 +7,9 @@ namespace tests\SupportVectorMachine;
use Phpml\SupportVectorMachine\Kernel;
use Phpml\SupportVectorMachine\SupportVectorMachine;
use Phpml\SupportVectorMachine\Type;
use PHPUnit\Framework\TestCase;
class SupportVectorMachineTest extends \PHPUnit_Framework_TestCase
class SupportVectorMachineTest extends TestCase
{
public function testTrainCSVCModelWithLinearKernel()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Tokenization;
use Phpml\Tokenization\WhitespaceTokenizer;
use PHPUnit\Framework\TestCase;
class WhitespaceTokenizerTest extends \PHPUnit_Framework_TestCase
class WhitespaceTokenizerTest extends TestCase
{
public function testTokenizationOnAscii()
{

View File

@ -5,8 +5,9 @@ declare(strict_types=1);
namespace tests\Tokenization;
use Phpml\Tokenization\WordTokenizer;
use PHPUnit\Framework\TestCase;
class WordTokenizerTest extends \PHPUnit_Framework_TestCase
class WordTokenizerTest extends TestCase
{
public function testTokenizationOnAscii()
{