From 858d13b0faa593e60230bf09b9d51c8f2aff252c Mon Sep 17 00:00:00 2001 From: Arkadiusz Kondas Date: Fri, 3 Feb 2017 12:58:25 +0100 Subject: [PATCH] Update phpunit to 6.0 --- composer.json | 4 +- composer.lock | 323 ++++++++---------- src/Phpml/Exception/SerializeException.php | 1 - tests/Phpml/Association/AprioriTest.php | 3 +- .../Phpml/Classification/DecisionTreeTest.php | 4 +- .../Classification/KNearestNeighborsTest.php | 3 +- tests/Phpml/Classification/NaiveBayesTest.php | 5 +- tests/Phpml/Classification/SVCTest.php | 3 +- tests/Phpml/Clustering/DBSCANTest.php | 3 +- tests/Phpml/Clustering/FuzzyCMeansTest.php | 3 +- tests/Phpml/Clustering/KMeansTest.php | 3 +- .../Phpml/CrossValidation/RandomSplitTest.php | 3 +- .../StratifiedRandomSplitTest.php | 3 +- tests/Phpml/Dataset/ArrayDatasetTest.php | 3 +- tests/Phpml/Dataset/CsvDatasetTest.php | 3 +- tests/Phpml/Dataset/Demo/GlassDatasetTest.php | 3 +- tests/Phpml/Dataset/Demo/IrisDatasetTest.php | 3 +- tests/Phpml/Dataset/Demo/WineDatasetTest.php | 3 +- tests/Phpml/Dataset/FilesDatasetTest.php | 3 +- .../Phpml/FeatureExtraction/StopWordsTest.php | 3 +- .../TfIdfTransformerTest.php | 3 +- .../TokenCountVectorizerTest.php | 3 +- tests/Phpml/Math/Distance/ChebyshevTest.php | 3 +- tests/Phpml/Math/Distance/EuclideanTest.php | 3 +- tests/Phpml/Math/Distance/ManhattanTest.php | 3 +- tests/Phpml/Math/Distance/MinkowskiTest.php | 3 +- tests/Phpml/Math/Kernel/RBFTest.php | 3 +- tests/Phpml/Math/MatrixTest.php | 3 +- tests/Phpml/Math/ProductTest.php | 3 +- tests/Phpml/Math/SetTest.php | 7 +- .../Phpml/Math/Statistic/CorrelationTest.php | 3 +- tests/Phpml/Math/Statistic/MeanTest.php | 3 +- .../Math/Statistic/StandardDeviationTest.php | 3 +- tests/Phpml/Metric/AccuracyTest.php | 3 +- .../Phpml/Metric/ClassificationReportTest.php | 3 +- tests/Phpml/Metric/ConfusionMatrixTest.php | 3 +- tests/Phpml/ModelManagerTest.php | 4 +- .../ActivationFunction/BinaryStepTest.php | 3 +- .../ActivationFunction/GaussianTest.php | 3 +- .../HyperboliTangentTest.php | 3 +- .../ActivationFunction/SigmoidTest.php | 3 +- tests/Phpml/NeuralNetwork/LayerTest.php | 3 +- .../Network/LayeredNetworkTest.php | 3 +- .../Network/MultilayerPerceptronTest.php | 3 +- tests/Phpml/NeuralNetwork/Node/BiasTest.php | 3 +- tests/Phpml/NeuralNetwork/Node/InputTest.php | 3 +- .../NeuralNetwork/Node/Neuron/SynapseTest.php | 3 +- tests/Phpml/NeuralNetwork/Node/NeuronTest.php | 3 +- .../Training/BackpropagationTest.php | 3 +- tests/Phpml/PipelineTest.php | 3 +- tests/Phpml/Preprocessing/ImputerTest.php | 3 +- tests/Phpml/Preprocessing/NormalizerTest.php | 3 +- tests/Phpml/Regression/LeastSquaresTest.php | 4 +- tests/Phpml/Regression/SVRTest.php | 5 +- .../DataTransformerTest.php | 3 +- .../SupportVectorMachineTest.php | 3 +- .../Tokenization/WhitespaceTokenizerTest.php | 3 +- .../Phpml/Tokenization/WordTokenizerTest.php | 3 +- 58 files changed, 251 insertions(+), 253 deletions(-) diff --git a/composer.json b/composer.json index 9784154..88043dd 100644 --- a/composer.json +++ b/composer.json @@ -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" diff --git a/composer.lock b/composer.lock index 27f1829..424fd17 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": "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": [], diff --git a/src/Phpml/Exception/SerializeException.php b/src/Phpml/Exception/SerializeException.php index 52620e9..70e6892 100644 --- a/src/Phpml/Exception/SerializeException.php +++ b/src/Phpml/Exception/SerializeException.php @@ -26,5 +26,4 @@ class SerializeException extends \Exception { return new self(sprintf('Class "%s" can not be serialized.', $classname)); } - } diff --git a/tests/Phpml/Association/AprioriTest.php b/tests/Phpml/Association/AprioriTest.php index 60069b2..65d5ea5 100644 --- a/tests/Phpml/Association/AprioriTest.php +++ b/tests/Phpml/Association/AprioriTest.php @@ -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'], diff --git a/tests/Phpml/Classification/DecisionTreeTest.php b/tests/Phpml/Classification/DecisionTreeTest.php index 7ec25ba..db2d810 100644 --- a/tests/Phpml/Classification/DecisionTreeTest.php +++ b/tests/Phpml/Classification/DecisionTreeTest.php @@ -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() diff --git a/tests/Phpml/Classification/KNearestNeighborsTest.php b/tests/Phpml/Classification/KNearestNeighborsTest.php index 9824e5d..ea9db77 100644 --- a/tests/Phpml/Classification/KNearestNeighborsTest.php +++ b/tests/Phpml/Classification/KNearestNeighborsTest.php @@ -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() { diff --git a/tests/Phpml/Classification/NaiveBayesTest.php b/tests/Phpml/Classification/NaiveBayesTest.php index 1f66ec8..9b2171a 100644 --- a/tests/Phpml/Classification/NaiveBayesTest.php +++ b/tests/Phpml/Classification/NaiveBayesTest.php @@ -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)); } - } diff --git a/tests/Phpml/Classification/SVCTest.php b/tests/Phpml/Classification/SVCTest.php index 34111b4..89c27e3 100644 --- a/tests/Phpml/Classification/SVCTest.php +++ b/tests/Phpml/Classification/SVCTest.php @@ -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() { diff --git a/tests/Phpml/Clustering/DBSCANTest.php b/tests/Phpml/Clustering/DBSCANTest.php index b631508..2d959ac 100644 --- a/tests/Phpml/Clustering/DBSCANTest.php +++ b/tests/Phpml/Clustering/DBSCANTest.php @@ -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() { diff --git a/tests/Phpml/Clustering/FuzzyCMeansTest.php b/tests/Phpml/Clustering/FuzzyCMeansTest.php index 56d3c63..85285b2 100644 --- a/tests/Phpml/Clustering/FuzzyCMeansTest.php +++ b/tests/Phpml/Clustering/FuzzyCMeansTest.php @@ -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() { diff --git a/tests/Phpml/Clustering/KMeansTest.php b/tests/Phpml/Clustering/KMeansTest.php index bd954be..c25306b 100644 --- a/tests/Phpml/Clustering/KMeansTest.php +++ b/tests/Phpml/Clustering/KMeansTest.php @@ -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() { diff --git a/tests/Phpml/CrossValidation/RandomSplitTest.php b/tests/Phpml/CrossValidation/RandomSplitTest.php index d6f4681..b2717fd 100644 --- a/tests/Phpml/CrossValidation/RandomSplitTest.php +++ b/tests/Phpml/CrossValidation/RandomSplitTest.php @@ -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 diff --git a/tests/Phpml/CrossValidation/StratifiedRandomSplitTest.php b/tests/Phpml/CrossValidation/StratifiedRandomSplitTest.php index afe3d81..ef07398 100644 --- a/tests/Phpml/CrossValidation/StratifiedRandomSplitTest.php +++ b/tests/Phpml/CrossValidation/StratifiedRandomSplitTest.php @@ -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() { diff --git a/tests/Phpml/Dataset/ArrayDatasetTest.php b/tests/Phpml/Dataset/ArrayDatasetTest.php index bd19bcb..0b13b51 100644 --- a/tests/Phpml/Dataset/ArrayDatasetTest.php +++ b/tests/Phpml/Dataset/ArrayDatasetTest.php @@ -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 diff --git a/tests/Phpml/Dataset/CsvDatasetTest.php b/tests/Phpml/Dataset/CsvDatasetTest.php index 65c589a..44a112b 100644 --- a/tests/Phpml/Dataset/CsvDatasetTest.php +++ b/tests/Phpml/Dataset/CsvDatasetTest.php @@ -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 diff --git a/tests/Phpml/Dataset/Demo/GlassDatasetTest.php b/tests/Phpml/Dataset/Demo/GlassDatasetTest.php index 9755b5d..5e3f94c 100644 --- a/tests/Phpml/Dataset/Demo/GlassDatasetTest.php +++ b/tests/Phpml/Dataset/Demo/GlassDatasetTest.php @@ -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() { diff --git a/tests/Phpml/Dataset/Demo/IrisDatasetTest.php b/tests/Phpml/Dataset/Demo/IrisDatasetTest.php index 3ee67d0..18ad647 100644 --- a/tests/Phpml/Dataset/Demo/IrisDatasetTest.php +++ b/tests/Phpml/Dataset/Demo/IrisDatasetTest.php @@ -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() { diff --git a/tests/Phpml/Dataset/Demo/WineDatasetTest.php b/tests/Phpml/Dataset/Demo/WineDatasetTest.php index dbac4e0..a79ed8c 100644 --- a/tests/Phpml/Dataset/Demo/WineDatasetTest.php +++ b/tests/Phpml/Dataset/Demo/WineDatasetTest.php @@ -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() { diff --git a/tests/Phpml/Dataset/FilesDatasetTest.php b/tests/Phpml/Dataset/FilesDatasetTest.php index 49f0e20..d12477f 100644 --- a/tests/Phpml/Dataset/FilesDatasetTest.php +++ b/tests/Phpml/Dataset/FilesDatasetTest.php @@ -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 diff --git a/tests/Phpml/FeatureExtraction/StopWordsTest.php b/tests/Phpml/FeatureExtraction/StopWordsTest.php index feed892..dd0a185 100644 --- a/tests/Phpml/FeatureExtraction/StopWordsTest.php +++ b/tests/Phpml/FeatureExtraction/StopWordsTest.php @@ -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() { diff --git a/tests/Phpml/FeatureExtraction/TfIdfTransformerTest.php b/tests/Phpml/FeatureExtraction/TfIdfTransformerTest.php index fd9bb1c..90aa107 100644 --- a/tests/Phpml/FeatureExtraction/TfIdfTransformerTest.php +++ b/tests/Phpml/FeatureExtraction/TfIdfTransformerTest.php @@ -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() { diff --git a/tests/Phpml/FeatureExtraction/TokenCountVectorizerTest.php b/tests/Phpml/FeatureExtraction/TokenCountVectorizerTest.php index 2a49b87..a25d5a5 100644 --- a/tests/Phpml/FeatureExtraction/TokenCountVectorizerTest.php +++ b/tests/Phpml/FeatureExtraction/TokenCountVectorizerTest.php @@ -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() { diff --git a/tests/Phpml/Math/Distance/ChebyshevTest.php b/tests/Phpml/Math/Distance/ChebyshevTest.php index c35432d..8806c74 100644 --- a/tests/Phpml/Math/Distance/ChebyshevTest.php +++ b/tests/Phpml/Math/Distance/ChebyshevTest.php @@ -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 diff --git a/tests/Phpml/Math/Distance/EuclideanTest.php b/tests/Phpml/Math/Distance/EuclideanTest.php index b3a1f31..38cb6b7 100644 --- a/tests/Phpml/Math/Distance/EuclideanTest.php +++ b/tests/Phpml/Math/Distance/EuclideanTest.php @@ -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 diff --git a/tests/Phpml/Math/Distance/ManhattanTest.php b/tests/Phpml/Math/Distance/ManhattanTest.php index 07c6510..0e22a15 100644 --- a/tests/Phpml/Math/Distance/ManhattanTest.php +++ b/tests/Phpml/Math/Distance/ManhattanTest.php @@ -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 diff --git a/tests/Phpml/Math/Distance/MinkowskiTest.php b/tests/Phpml/Math/Distance/MinkowskiTest.php index 3e8afdb..d8931d0 100644 --- a/tests/Phpml/Math/Distance/MinkowskiTest.php +++ b/tests/Phpml/Math/Distance/MinkowskiTest.php @@ -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 diff --git a/tests/Phpml/Math/Kernel/RBFTest.php b/tests/Phpml/Math/Kernel/RBFTest.php index 4eea13e..8076827 100644 --- a/tests/Phpml/Math/Kernel/RBFTest.php +++ b/tests/Phpml/Math/Kernel/RBFTest.php @@ -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() { diff --git a/tests/Phpml/Math/MatrixTest.php b/tests/Phpml/Math/MatrixTest.php index 442ef0c..b4adc76 100644 --- a/tests/Phpml/Math/MatrixTest.php +++ b/tests/Phpml/Math/MatrixTest.php @@ -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 diff --git a/tests/Phpml/Math/ProductTest.php b/tests/Phpml/Math/ProductTest.php index 7fc525c..50ced9e 100644 --- a/tests/Phpml/Math/ProductTest.php +++ b/tests/Phpml/Math/ProductTest.php @@ -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() { diff --git a/tests/Phpml/Math/SetTest.php b/tests/Phpml/Math/SetTest.php index c6548c7..101763c 100644 --- a/tests/Phpml/Math/SetTest.php +++ b/tests/Phpml/Math/SetTest.php @@ -1,10 +1,13 @@ -assertEquals($regression, $restoredRegression); $this->assertEquals($predicted, $restoredRegression->predict($testSamples)); } - } diff --git a/tests/Phpml/Regression/SVRTest.php b/tests/Phpml/Regression/SVRTest.php index 17bb66e..d334973 100644 --- a/tests/Phpml/Regression/SVRTest.php +++ b/tests/Phpml/Regression/SVRTest.php @@ -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)); } - } diff --git a/tests/Phpml/SupportVectorMachine/DataTransformerTest.php b/tests/Phpml/SupportVectorMachine/DataTransformerTest.php index cb0ee52..33d52c0 100644 --- a/tests/Phpml/SupportVectorMachine/DataTransformerTest.php +++ b/tests/Phpml/SupportVectorMachine/DataTransformerTest.php @@ -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() { diff --git a/tests/Phpml/SupportVectorMachine/SupportVectorMachineTest.php b/tests/Phpml/SupportVectorMachine/SupportVectorMachineTest.php index 4b4e03b..ca9f299 100644 --- a/tests/Phpml/SupportVectorMachine/SupportVectorMachineTest.php +++ b/tests/Phpml/SupportVectorMachine/SupportVectorMachineTest.php @@ -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() { diff --git a/tests/Phpml/Tokenization/WhitespaceTokenizerTest.php b/tests/Phpml/Tokenization/WhitespaceTokenizerTest.php index 8f2daf3..1133835 100644 --- a/tests/Phpml/Tokenization/WhitespaceTokenizerTest.php +++ b/tests/Phpml/Tokenization/WhitespaceTokenizerTest.php @@ -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() { diff --git a/tests/Phpml/Tokenization/WordTokenizerTest.php b/tests/Phpml/Tokenization/WordTokenizerTest.php index 959adfb..3a6abba 100644 --- a/tests/Phpml/Tokenization/WordTokenizerTest.php +++ b/tests/Phpml/Tokenization/WordTokenizerTest.php @@ -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() {