From c00c75d04e34a3aa19c1d4a79f853973d141dcf4 Mon Sep 17 00:00:00 2001 From: peter279k Date: Sat, 25 May 2019 00:28:59 +0800 Subject: [PATCH] Test enhancement --- composer.json | 15 +- composer.lock | 428 ++++++++++++--------- tests/Mf2/ClassicMicroformatsTest.php | 8 +- tests/Mf2/CombinedMicroformatsTest.php | 8 +- tests/Mf2/MicroformatsWikiExamplesTest.php | 6 +- tests/Mf2/ParseDTTest.php | 6 +- tests/Mf2/ParseHtmlIdTest.php | 9 +- tests/Mf2/ParseImpliedTest.php | 6 +- tests/Mf2/ParseLanguageTest.php | 7 +- tests/Mf2/ParsePTest.php | 6 +- tests/Mf2/ParseUTest.php | 6 +- tests/Mf2/ParseValueClassTitleTest.php | 6 +- tests/Mf2/ParserTest.php | 8 +- tests/Mf2/PlainTextTest.php | 4 +- tests/Mf2/RelTest.php | 6 +- tests/Mf2/URLTest.php | 6 +- tests/test-suite/test-suite.php | 1 - 17 files changed, 310 insertions(+), 226 deletions(-) diff --git a/composer.json b/composer.json index c8f92c3..bca82d3 100644 --- a/composer.json +++ b/composer.json @@ -14,13 +14,20 @@ "php": ">=5.4.0" }, "require-dev": { - "phpunit/phpunit": "4.8.*", - "phpdocumentor/phpdocumentor": "v2.8.4", + "phpunit/phpunit": "^4.8.36", + "phpdocumentor/phpdocumentor": "^2.8.4", "mf2/tests": "@dev" }, "autoload": { - "files": ["Mf2/Parser.php"] - }, + "psr-4": { + "Mf2\\": "Mf2/" + } + }, + "autoload-dev": { + "psr-4": { + "Mf2\\Parser\\Test\\": "tests/" + } + }, "license": "CC0-1.0", "suggest": { "barnabywalters/mf-cleaner": "To more easily handle the canonical data php-mf2 gives you", diff --git a/composer.lock b/composer.lock index ac77ce3..fa28602 100644 --- a/composer.lock +++ b/composer.lock @@ -1,10 +1,10 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5d070b435f66729017b7f1f1ad0ea8a0", + "content-hash": "c61e4b8a957d3b79a5f842c50fa869aa", "packages": [], "packages-dev": [ { @@ -303,21 +303,24 @@ }, { "name": "erusev/parsedown", - "version": "1.6.2", + "version": "1.7.0", "source": { "type": "git", "url": "https://github.com/erusev/parsedown.git", - "reference": "1bf24f7334fe16c88bf9d467863309ceaf285b01" + "reference": "6678d59be48c4be64eaca6ce70bea48a09488cc2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/erusev/parsedown/zipball/1bf24f7334fe16c88bf9d467863309ceaf285b01", - "reference": "1bf24f7334fe16c88bf9d467863309ceaf285b01", + "url": "https://api.github.com/repos/erusev/parsedown/zipball/6678d59be48c4be64eaca6ce70bea48a09488cc2", + "reference": "6678d59be48c4be64eaca6ce70bea48a09488cc2", "shasum": "" }, "require": { "php": ">=5.3.0" }, + "require-dev": { + "phpunit/phpunit": "^4.8.35" + }, "type": "library", "autoload": { "psr-0": { @@ -341,7 +344,7 @@ "markdown", "parser" ], - "time": "2017-03-29T16:04:15+00:00" + "time": "2018-02-28T11:41:37+00:00" }, { "name": "herrera-io/json", @@ -464,16 +467,16 @@ }, { "name": "jms/metadata", - "version": "1.6.0", + "version": "1.7.0", "source": { "type": "git", "url": "https://github.com/schmittjoh/metadata.git", - "reference": "6a06970a10e0a532fb52d3959547123b84a3b3ab" + "reference": "e5854ab1aa643623dc64adde718a8eec32b957a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/metadata/zipball/6a06970a10e0a532fb52d3959547123b84a3b3ab", - "reference": "6a06970a10e0a532fb52d3959547123b84a3b3ab", + "url": "https://api.github.com/repos/schmittjoh/metadata/zipball/e5854ab1aa643623dc64adde718a8eec32b957a8", + "reference": "e5854ab1aa643623dc64adde718a8eec32b957a8", "shasum": "" }, "require": { @@ -496,9 +499,13 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "Apache-2.0" + "MIT" ], "authors": [ + { + "name": "Asmir Mustafic", + "email": "goetas@gmail.com" + }, { "name": "Johannes M. Schmitt", "email": "schmittjoh@gmail.com" @@ -511,7 +518,7 @@ "xml", "yaml" ], - "time": "2016-12-05T10:18:33+00:00" + "time": "2018-10-26T12:40:10+00:00" }, { "name": "jms/parser-lib", @@ -550,36 +557,41 @@ }, { "name": "jms/serializer", - "version": "0.16.0", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/schmittjoh/serializer.git", - "reference": "c8a171357ca92b6706e395c757f334902d430ea9" + "reference": "fe13a1f993ea3456e195b7820692f2eb2b6bbb48" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/serializer/zipball/c8a171357ca92b6706e395c757f334902d430ea9", - "reference": "c8a171357ca92b6706e395c757f334902d430ea9", + "url": "https://api.github.com/repos/schmittjoh/serializer/zipball/fe13a1f993ea3456e195b7820692f2eb2b6bbb48", + "reference": "fe13a1f993ea3456e195b7820692f2eb2b6bbb48", "shasum": "" }, "require": { "doctrine/annotations": "1.*", + "doctrine/instantiator": "~1.0.3", "jms/metadata": "~1.1", "jms/parser-lib": "1.*", - "php": ">=5.3.2", + "php": ">=5.4.0", "phpcollection/phpcollection": "~0.1" }, + "conflict": { + "twig/twig": "<1.12" + }, "require-dev": { "doctrine/orm": "~2.1", "doctrine/phpcr-odm": "~1.0.1", "jackalope/jackalope-doctrine-dbal": "1.0.*", + "phpunit/phpunit": "~4.0", "propel/propel1": "~1.7", "symfony/filesystem": "2.*", "symfony/form": "~2.1", "symfony/translation": "~2.0", "symfony/validator": "~2.0", "symfony/yaml": "2.*", - "twig/twig": ">=1.8,<2.0-dev" + "twig/twig": "~1.12|~2.0" }, "suggest": { "symfony/yaml": "Required if you'd like to serialize data to YAML format." @@ -587,7 +599,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "0.15-dev" + "dev-master": "1.1-dev" } }, "autoload": { @@ -601,10 +613,8 @@ ], "authors": [ { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "https://github.com/schmittjoh", - "role": "Developer of wrapped JMSSerializerBundle" + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com" } ], "description": "Library for (de-)serializing data of any complexity; supports XML, JSON, and YAML.", @@ -616,7 +626,7 @@ "serialization", "xml" ], - "time": "2014-03-18T08:39:00+00:00" + "time": "2015-10-27T09:24:41+00:00" }, { "name": "justinrainbow/json-schema", @@ -733,12 +743,12 @@ "source": { "type": "git", "url": "https://github.com/microformats/tests.git", - "reference": "7b10592633fe83600e00f6e00b479b4f255eb2fd" + "reference": "92b58935c2c2e016ba5fc430410dda051a6fb20f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/microformats/tests/zipball/7b10592633fe83600e00f6e00b479b4f255eb2fd", - "reference": "7b10592633fe83600e00f6e00b479b4f255eb2fd", + "url": "https://api.github.com/repos/microformats/tests/zipball/92b58935c2c2e016ba5fc430410dda051a6fb20f", + "reference": "92b58935c2c2e016ba5fc430410dda051a6fb20f", "shasum": "" }, "type": "library", @@ -754,20 +764,20 @@ ], "description": "Microformats test suite", "homepage": "https://github.com/microformats/tests", - "time": "2017-05-27T08:22:21+00:00" + "time": "2018-09-12T18:43:24+00:00" }, { "name": "monolog/monolog", - "version": "1.22.1", + "version": "1.24.0", "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "1e044bc4b34e91743943479f1be7a1d5eb93add0" + "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/1e044bc4b34e91743943479f1be7a1d5eb93add0", - "reference": "1e044bc4b34e91743943479f1be7a1d5eb93add0", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", + "reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", "shasum": "" }, "require": { @@ -788,7 +798,7 @@ "phpunit/phpunit-mock-objects": "2.3.0", "ruflin/elastica": ">=0.90 <3.0", "sentry/sentry": "^0.13", - "swiftmailer/swiftmailer": "~5.3" + "swiftmailer/swiftmailer": "^5.3|^6.0" }, "suggest": { "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", @@ -832,36 +842,36 @@ "logging", "psr-3" ], - "time": "2017-03-13T07:08:03+00:00" + "time": "2018-11-05T09:00:11+00:00" }, { "name": "nikic/php-parser", - "version": "v0.9.5", + "version": "v1.4.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "ef70767475434bdb3615b43c327e2cae17ef12eb" + "reference": "f78af2c9c86107aa1a34cd1dbb5bbe9eeb0d9f51" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/ef70767475434bdb3615b43c327e2cae17ef12eb", - "reference": "ef70767475434bdb3615b43c327e2cae17ef12eb", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f78af2c9c86107aa1a34cd1dbb5bbe9eeb0d9f51", + "reference": "f78af2c9c86107aa1a34cd1dbb5bbe9eeb0d9f51", "shasum": "" }, "require": { "ext-tokenizer": "*", - "php": ">=5.2" + "php": ">=5.3" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "0.9-dev" + "dev-master": "1.4-dev" } }, "autoload": { - "psr-0": { - "PHPParser": "lib/" - } + "files": [ + "lib/bootstrap.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -877,7 +887,7 @@ "parser", "php" ], - "time": "2014-07-23T18:24:17+00:00" + "time": "2015-09-19T14:15:08+00:00" }, { "name": "phpcollection/phpcollection", @@ -1013,28 +1023,28 @@ }, { "name": "phpdocumentor/phpdocumentor", - "version": "v2.8.4", + "version": "v2.9.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/phpDocumentor2.git", - "reference": "6d8f4c6381283dd2ae21efae30080adde9bfb1ba" + "reference": "be607da0eef9b9249c43c5b4820d25d631c73667" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/phpDocumentor2/zipball/6d8f4c6381283dd2ae21efae30080adde9bfb1ba", - "reference": "6d8f4c6381283dd2ae21efae30080adde9bfb1ba", + "url": "https://api.github.com/repos/phpDocumentor/phpDocumentor2/zipball/be607da0eef9b9249c43c5b4820d25d631c73667", + "reference": "be607da0eef9b9249c43c5b4820d25d631c73667", "shasum": "" }, "require": { "cilex/cilex": "~1.0", "erusev/parsedown": "~1.0", "herrera-io/phar-update": "1.0.3", - "jms/serializer": "~0.12", + "jms/serializer": ">=0.12", "monolog/monolog": "~1.6", "php": ">=5.3.3", "phpdocumentor/fileset": "~1.0", "phpdocumentor/graphviz": "~1.0", - "phpdocumentor/reflection": "~1.0", + "phpdocumentor/reflection": "^3.0", "phpdocumentor/reflection-docblock": "~2.0", "symfony/config": "~2.3", "symfony/console": "~2.3", @@ -1098,24 +1108,24 @@ "documentation", "phpdoc" ], - "time": "2015-07-03T10:23:02+00:00" + "time": "2016-05-22T09:50:56+00:00" }, { "name": "phpdocumentor/reflection", - "version": "1.0.7", + "version": "3.0.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/Reflection.git", - "reference": "fc40c3f604ac2287eb5c314174d5109b2c699372" + "reference": "793bfd92d9a0fc96ae9608fb3e947c3f59fb3a0d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/Reflection/zipball/fc40c3f604ac2287eb5c314174d5109b2c699372", - "reference": "fc40c3f604ac2287eb5c314174d5109b2c699372", + "url": "https://api.github.com/repos/phpDocumentor/Reflection/zipball/793bfd92d9a0fc96ae9608fb3e947c3f59fb3a0d", + "reference": "793bfd92d9a0fc96ae9608fb3e947c3f59fb3a0d", "shasum": "" }, "require": { - "nikic/php-parser": "~0.9.4", + "nikic/php-parser": "^1.0", "php": ">=5.3.3", "phpdocumentor/reflection-docblock": "~2.0", "psr/log": "~1.0" @@ -1152,7 +1162,7 @@ "reflection", "static analysis" ], - "time": "2014-11-14T11:43:04+00:00" + "time": "2016-05-21T08:42:32+00:00" }, { "name": "phpdocumentor/reflection-docblock", @@ -1255,33 +1265,33 @@ }, { "name": "phpspec/prophecy", - "version": "v1.7.0", + "version": "1.8.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "93d39f1f7f9326d746203c7c056f300f7f126073" + "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/93d39f1f7f9326d746203c7c056f300f7f126073", - "reference": "93d39f1f7f9326d746203c7c056f300f7f126073", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4ba436b55987b4bf311cb7c6ba82aa528aac0a06", + "reference": "4ba436b55987b4bf311cb7c6ba82aa528aac0a06", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2", - "sebastian/comparator": "^1.1|^2.0", + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", + "sebastian/comparator": "^1.1|^2.0|^3.0", "sebastian/recursion-context": "^1.0|^2.0|^3.0" }, "require-dev": { "phpspec/phpspec": "^2.5|^3.2", - "phpunit/phpunit": "^4.8 || ^5.6.5" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6.x-dev" + "dev-master": "1.8.x-dev" } }, "autoload": { @@ -1314,7 +1324,7 @@ "spy", "stub" ], - "time": "2017-03-02T20:05:34+00:00" + "time": "2018-08-05T17:53:17+00:00" }, { "name": "phpunit/php-code-coverage", @@ -1380,16 +1390,16 @@ }, { "name": "phpunit/php-file-iterator", - "version": "1.4.2", + "version": "1.4.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5" + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3cc8f69b3028d0f96a9078e6295d86e9bf019be5", - "reference": "3cc8f69b3028d0f96a9078e6295d86e9bf019be5", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", "shasum": "" }, "require": { @@ -1423,7 +1433,7 @@ "filesystem", "iterator" ], - "time": "2016-10-03T07:40:28+00:00" + "time": "2017-11-27T13:52:08+00:00" }, { "name": "phpunit/php-text-template", @@ -1517,16 +1527,16 @@ }, { "name": "phpunit/php-token-stream", - "version": "1.4.11", + "version": "1.4.12", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7" + "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/e03f8f67534427a787e21a385a67ec3ca6978ea7", - "reference": "e03f8f67534427a787e21a385a67ec3ca6978ea7", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16", + "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16", "shasum": "" }, "require": { @@ -1562,20 +1572,20 @@ "keywords": [ "tokenizer" ], - "time": "2017-02-27T10:12:30+00:00" + "time": "2017-12-04T08:55:13+00:00" }, { "name": "phpunit/phpunit", - "version": "4.8.35", + "version": "4.8.36", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "791b1a67c25af50e230f841ee7a9c6eba507dc87" + "reference": "46023de9a91eec7dfb06cc56cb4e260017298517" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/791b1a67c25af50e230f841ee7a9c6eba507dc87", - "reference": "791b1a67c25af50e230f841ee7a9c6eba507dc87", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517", + "reference": "46023de9a91eec7dfb06cc56cb4e260017298517", "shasum": "" }, "require": { @@ -1634,7 +1644,7 @@ "testing", "xunit" ], - "time": "2017-02-06T05:18:07+00:00" + "time": "2017-06-21T08:07:12+00:00" }, { "name": "phpunit/phpunit-mock-objects", @@ -1690,6 +1700,7 @@ "mock", "xunit" ], + "abandoned": true, "time": "2015-10-02T06:51:40+00:00" }, { @@ -1740,16 +1751,16 @@ }, { "name": "psr/log", - "version": "1.0.2", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d" + "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", - "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d", + "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", + "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", "shasum": "" }, "require": { @@ -1783,7 +1794,7 @@ "psr", "psr-3" ], - "time": "2016-10-10T12:19:37+00:00" + "time": "2018-11-20T15:27:04+00:00" }, { "name": "sebastian/comparator", @@ -2159,23 +2170,23 @@ }, { "name": "seld/jsonlint", - "version": "1.6.0", + "version": "1.7.1", "source": { "type": "git", "url": "https://github.com/Seldaek/jsonlint.git", - "reference": "791f8c594f300d246cdf01c6b3e1e19611e301d8" + "reference": "d15f59a67ff805a44c50ea0516d2341740f81a38" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/791f8c594f300d246cdf01c6b3e1e19611e301d8", - "reference": "791f8c594f300d246cdf01c6b3e1e19611e301d8", + "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/d15f59a67ff805a44c50ea0516d2341740f81a38", + "reference": "d15f59a67ff805a44c50ea0516d2341740f81a38", "shasum": "" }, "require": { "php": "^5.3 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "^4.5" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" }, "bin": [ "bin/jsonlint" @@ -2204,25 +2215,26 @@ "parser", "validator" ], - "time": "2017-03-06T16:42:24+00:00" + "time": "2018-01-24T12:46:19+00:00" }, { "name": "symfony/config", - "version": "v2.8.20", + "version": "v2.8.50", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "0b8541d18507d10204a08384640ff6df3c739ebe" + "reference": "7dd5f5040dc04c118d057fb5886563963eb70011" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/0b8541d18507d10204a08384640ff6df3c739ebe", - "reference": "0b8541d18507d10204a08384640ff6df3c739ebe", + "url": "https://api.github.com/repos/symfony/config/zipball/7dd5f5040dc04c118d057fb5886563963eb70011", + "reference": "7dd5f5040dc04c118d057fb5886563963eb70011", "shasum": "" }, "require": { "php": ">=5.3.9", - "symfony/filesystem": "~2.3|~3.0.0" + "symfony/filesystem": "~2.3|~3.0.0", + "symfony/polyfill-ctype": "~1.8" }, "require-dev": { "symfony/yaml": "~2.7|~3.0.0" @@ -2260,20 +2272,20 @@ ], "description": "Symfony Config Component", "homepage": "https://symfony.com", - "time": "2017-04-12T14:07:15+00:00" + "time": "2018-11-26T09:38:12+00:00" }, { "name": "symfony/console", - "version": "v2.8.20", + "version": "v2.8.50", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "2cfcbced8e39e2313ed4da8896fc8c59a56c0d7e" + "reference": "cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/2cfcbced8e39e2313ed4da8896fc8c59a56c0d7e", - "reference": "2cfcbced8e39e2313ed4da8896fc8c59a56c0d7e", + "url": "https://api.github.com/repos/symfony/console/zipball/cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12", + "reference": "cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12", "shasum": "" }, "require": { @@ -2287,7 +2299,7 @@ "symfony/process": "~2.1|~3.0.0" }, "suggest": { - "psr/log": "For using the console logger", + "psr/log-implementation": "For using the console logger", "symfony/event-dispatcher": "", "symfony/process": "" }, @@ -2321,20 +2333,20 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2017-04-26T01:38:53+00:00" + "time": "2018-11-20T15:55:20+00:00" }, { "name": "symfony/debug", - "version": "v2.8.20", + "version": "v2.8.50", "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "344f50ce827413b3640bfcb1e37386a67d06ea1f" + "reference": "74251c8d50dd3be7c4ce0c7b862497cdc641a5d0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/344f50ce827413b3640bfcb1e37386a67d06ea1f", - "reference": "344f50ce827413b3640bfcb1e37386a67d06ea1f", + "url": "https://api.github.com/repos/symfony/debug/zipball/74251c8d50dd3be7c4ce0c7b862497cdc641a5d0", + "reference": "74251c8d50dd3be7c4ce0c7b862497cdc641a5d0", "shasum": "" }, "require": { @@ -2378,20 +2390,20 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2017-04-19T19:56:30+00:00" + "time": "2018-11-11T11:18:13+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v2.8.20", + "version": "v2.8.50", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "7fc8e2b4118ff316550596357325dfd92a51f531" + "reference": "a77e974a5fecb4398833b0709210e3d5e334ffb0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/7fc8e2b4118ff316550596357325dfd92a51f531", - "reference": "7fc8e2b4118ff316550596357325dfd92a51f531", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a77e974a5fecb4398833b0709210e3d5e334ffb0", + "reference": "a77e974a5fecb4398833b0709210e3d5e334ffb0", "shasum": "" }, "require": { @@ -2438,24 +2450,25 @@ ], "description": "Symfony EventDispatcher Component", "homepage": "https://symfony.com", - "time": "2017-04-26T16:56:54+00:00" + "time": "2018-11-21T14:20:20+00:00" }, { "name": "symfony/filesystem", - "version": "v2.8.20", + "version": "v2.8.50", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "dc40154e26a0116995e4f2f0c71cb9c2fe0775a3" + "reference": "7ae46872dad09dffb7fe1e93a0937097339d0080" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/dc40154e26a0116995e4f2f0c71cb9c2fe0775a3", - "reference": "dc40154e26a0116995e4f2f0c71cb9c2fe0775a3", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/7ae46872dad09dffb7fe1e93a0937097339d0080", + "reference": "7ae46872dad09dffb7fe1e93a0937097339d0080", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.3.9", + "symfony/polyfill-ctype": "~1.8" }, "type": "library", "extra": { @@ -2487,20 +2500,20 @@ ], "description": "Symfony Filesystem Component", "homepage": "https://symfony.com", - "time": "2017-04-12T14:07:15+00:00" + "time": "2018-11-11T11:18:13+00:00" }, { "name": "symfony/finder", - "version": "v2.8.20", + "version": "v2.8.50", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "16d55394b31547e4a8494551b85c9b9915545347" + "reference": "1444eac52273e345d9b95129bf914639305a9ba4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/16d55394b31547e4a8494551b85c9b9915545347", - "reference": "16d55394b31547e4a8494551b85c9b9915545347", + "url": "https://api.github.com/repos/symfony/finder/zipball/1444eac52273e345d9b95129bf914639305a9ba4", + "reference": "1444eac52273e345d9b95129bf914639305a9ba4", "shasum": "" }, "require": { @@ -2536,20 +2549,78 @@ ], "description": "Symfony Finder Component", "homepage": "https://symfony.com", - "time": "2017-04-12T14:07:15+00:00" + "time": "2018-11-11T11:18:13+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.11.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "82ebae02209c21113908c229e9883c419720738a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a", + "reference": "82ebae02209c21113908c229e9883c419720738a", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.11-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + }, + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "time": "2019-02-06T07:57:58+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.3.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4" + "reference": "fe5e94c604826c35a32fa832f35bd036b6799609" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/e79d363049d1c2128f133a2667e4f4190904f7f4", - "reference": "e79d363049d1c2128f133a2667e4f4190904f7f4", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fe5e94c604826c35a32fa832f35bd036b6799609", + "reference": "fe5e94c604826c35a32fa832f35bd036b6799609", "shasum": "" }, "require": { @@ -2561,7 +2632,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -2595,20 +2666,20 @@ "portable", "shim" ], - "time": "2016-11-14T01:06:16+00:00" + "time": "2019-02-06T07:57:58+00:00" }, { "name": "symfony/process", - "version": "v2.8.20", + "version": "v2.8.50", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "aff35fb3dee799c84a7313c576b72208b046ef8d" + "reference": "c3591a09c78639822b0b290d44edb69bf9f05dc8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/aff35fb3dee799c84a7313c576b72208b046ef8d", - "reference": "aff35fb3dee799c84a7313c576b72208b046ef8d", + "url": "https://api.github.com/repos/symfony/process/zipball/c3591a09c78639822b0b290d44edb69bf9f05dc8", + "reference": "c3591a09c78639822b0b290d44edb69bf9f05dc8", "shasum": "" }, "require": { @@ -2644,20 +2715,20 @@ ], "description": "Symfony Process Component", "homepage": "https://symfony.com", - "time": "2017-04-12T14:07:15+00:00" + "time": "2018-11-11T11:18:13+00:00" }, { "name": "symfony/stopwatch", - "version": "v2.8.20", + "version": "v2.8.50", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "e02577b841394a78306d7b547701bb7bb705bad5" + "reference": "752586c80af8a85aeb74d1ae8202411c68836663" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/e02577b841394a78306d7b547701bb7bb705bad5", - "reference": "e02577b841394a78306d7b547701bb7bb705bad5", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/752586c80af8a85aeb74d1ae8202411c68836663", + "reference": "752586c80af8a85aeb74d1ae8202411c68836663", "shasum": "" }, "require": { @@ -2693,20 +2764,20 @@ ], "description": "Symfony Stopwatch Component", "homepage": "https://symfony.com", - "time": "2017-04-12T14:07:15+00:00" + "time": "2018-11-11T11:18:13+00:00" }, { "name": "symfony/translation", - "version": "v2.8.20", + "version": "v2.8.50", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "32b7c0bffc07772cf1a902e3464ef77117fa07c7" + "reference": "fc58c2a19e56c29f5ba2736ec40d0119a0de2089" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/32b7c0bffc07772cf1a902e3464ef77117fa07c7", - "reference": "32b7c0bffc07772cf1a902e3464ef77117fa07c7", + "url": "https://api.github.com/repos/symfony/translation/zipball/fc58c2a19e56c29f5ba2736ec40d0119a0de2089", + "reference": "fc58c2a19e56c29f5ba2736ec40d0119a0de2089", "shasum": "" }, "require": { @@ -2723,7 +2794,7 @@ "symfony/yaml": "~2.2|~3.0.0" }, "suggest": { - "psr/log": "To use logging capability in translator", + "psr/log-implementation": "To use logging capability in translator", "symfony/config": "", "symfony/yaml": "" }, @@ -2757,24 +2828,25 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", - "time": "2017-04-12T14:07:15+00:00" + "time": "2018-11-24T21:16:41+00:00" }, { "name": "symfony/validator", - "version": "v2.8.20", + "version": "v2.8.50", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "e125c9ec86d615231817302115a1558cd74d9aa1" + "reference": "d5d2090bba3139d8ddb79959fbf516e87238fe3a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/e125c9ec86d615231817302115a1558cd74d9aa1", - "reference": "e125c9ec86d615231817302115a1558cd74d9aa1", + "url": "https://api.github.com/repos/symfony/validator/zipball/d5d2090bba3139d8ddb79959fbf516e87238fe3a", + "reference": "d5d2090bba3139d8ddb79959fbf516e87238fe3a", "shasum": "" }, "require": { "php": ">=5.3.9", + "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-mbstring": "~1.0", "symfony/translation": "~2.4|~3.0.0" }, @@ -2830,24 +2902,25 @@ ], "description": "Symfony Validator Component", "homepage": "https://symfony.com", - "time": "2017-04-12T14:07:15+00:00" + "time": "2018-11-14T14:06:48+00:00" }, { "name": "symfony/yaml", - "version": "v2.8.20", + "version": "v2.8.50", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "93ccdde79f4b079c7558da4656a3cb1c50c68e02" + "reference": "02c1859112aa779d9ab394ae4f3381911d84052b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/93ccdde79f4b079c7558da4656a3cb1c50c68e02", - "reference": "93ccdde79f4b079c7558da4656a3cb1c50c68e02", + "url": "https://api.github.com/repos/symfony/yaml/zipball/02c1859112aa779d9ab394ae4f3381911d84052b", + "reference": "02c1859112aa779d9ab394ae4f3381911d84052b", "shasum": "" }, "require": { - "php": ">=5.3.9" + "php": ">=5.3.9", + "symfony/polyfill-ctype": "~1.8" }, "type": "library", "extra": { @@ -2879,39 +2952,43 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2017-05-01T14:31:55+00:00" + "time": "2018-11-11T11:18:13+00:00" }, { "name": "twig/twig", - "version": "v1.33.2", + "version": "v1.41.0", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "dd6ca96227917e1e85b41c7c3cc6507b411e0927" + "reference": "575cd5028362da591facde1ef5d7b94553c375c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/dd6ca96227917e1e85b41c7c3cc6507b411e0927", - "reference": "dd6ca96227917e1e85b41c7c3cc6507b411e0927", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/575cd5028362da591facde1ef5d7b94553c375c9", + "reference": "575cd5028362da591facde1ef5d7b94553c375c9", "shasum": "" }, "require": { - "php": ">=5.2.7" + "php": ">=5.4.0", + "symfony/polyfill-ctype": "^1.8" }, "require-dev": { "psr/container": "^1.0", - "symfony/debug": "~2.7", - "symfony/phpunit-bridge": "~3.3@dev" + "symfony/debug": "^2.7", + "symfony/phpunit-bridge": "^3.4.19|^4.1.8" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.33-dev" + "dev-master": "1.41-dev" } }, "autoload": { "psr-0": { "Twig_": "lib/" + }, + "psr-4": { + "Twig\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -2932,16 +3009,16 @@ }, { "name": "Twig Team", - "homepage": "http://twig.sensiolabs.org/contributors", + "homepage": "https://twig.symfony.com/contributors", "role": "Contributors" } ], "description": "Twig, the flexible, fast, and secure template language for PHP", - "homepage": "http://twig.sensiolabs.org", + "homepage": "https://twig.symfony.com", "keywords": [ "templating" ], - "time": "2017-04-20T17:39:48+00:00" + "time": "2019-05-14T11:59:08+00:00" }, { "name": "zendframework/zend-cache", @@ -3492,19 +3569,20 @@ }, { "name": "zetacomponents/base", - "version": "1.9", + "version": "1.9.1", "source": { "type": "git", "url": "https://github.com/zetacomponents/Base.git", - "reference": "f20df24e8de3e48b6b69b2503f917e457281e687" + "reference": "489e20235989ddc97fdd793af31ac803972454f1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zetacomponents/Base/zipball/f20df24e8de3e48b6b69b2503f917e457281e687", - "reference": "f20df24e8de3e48b6b69b2503f917e457281e687", + "url": "https://api.github.com/repos/zetacomponents/Base/zipball/489e20235989ddc97fdd793af31ac803972454f1", + "reference": "489e20235989ddc97fdd793af31ac803972454f1", "shasum": "" }, "require-dev": { + "phpunit/phpunit": "~5.7", "zetacomponents/unit-test": "*" }, "type": "library", @@ -3551,7 +3629,7 @@ ], "description": "The Base package provides the basic infrastructure that all packages rely on. Therefore every component relies on this package.", "homepage": "https://github.com/zetacomponents", - "time": "2014-09-19T03:28:34+00:00" + "time": "2017-11-28T11:30:00+00:00" }, { "name": "zetacomponents/document", diff --git a/tests/Mf2/ClassicMicroformatsTest.php b/tests/Mf2/ClassicMicroformatsTest.php index 97e7a7a..2b77c1a 100644 --- a/tests/Mf2/ClassicMicroformatsTest.php +++ b/tests/Mf2/ClassicMicroformatsTest.php @@ -6,9 +6,9 @@ namespace Mf2\Parser\Test; -use Mf2\Parser; use Mf2; -use PHPUnit_Framework_TestCase; +use Mf2\Parser; +use PHPUnit\Framework\TestCase; /** * Classic Microformats Test @@ -17,8 +17,8 @@ * * Mainly based off BC tables on http://microformats.org/wiki/microformats2#v2_vocabularies */ -class ClassicMicroformatsTest extends PHPUnit_Framework_TestCase { - public function setUp() { +class ClassicMicroformatsTest extends TestCase { + protected function setUp() { date_default_timezone_set('Europe/London'); } diff --git a/tests/Mf2/CombinedMicroformatsTest.php b/tests/Mf2/CombinedMicroformatsTest.php index 3bcc23d..a1dc0f3 100644 --- a/tests/Mf2/CombinedMicroformatsTest.php +++ b/tests/Mf2/CombinedMicroformatsTest.php @@ -2,9 +2,9 @@ namespace Mf2\Parser\Test; -use Mf2\Parser; use Mf2; -use PHPUnit_Framework_TestCase; +use Mf2\Parser; +use PHPUnit\Framework\TestCase; /** * Combined Microformats Test @@ -14,9 +14,9 @@ * * @todo implement */ -class CombinedMicroformatsTest extends PHPUnit_Framework_TestCase { +class CombinedMicroformatsTest extends TestCase { - public function setUp() { + protected function setUp() { date_default_timezone_set('Europe/London'); } diff --git a/tests/Mf2/MicroformatsWikiExamplesTest.php b/tests/Mf2/MicroformatsWikiExamplesTest.php index 83bfec3..5c9239e 100644 --- a/tests/Mf2/MicroformatsWikiExamplesTest.php +++ b/tests/Mf2/MicroformatsWikiExamplesTest.php @@ -7,7 +7,7 @@ namespace Mf2\Parser\Test; use Mf2\Parser; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; /** * Microformats Wiki Examples @@ -19,9 +19,9 @@ * * @author Barnaby Walters waterpigs.co.uk */ -class MicroformatsWikiExamplesTest extends PHPUnit_Framework_TestCase { +class MicroformatsWikiExamplesTest extends TestCase { - public function setUp() { + protected function setUp() { date_default_timezone_set('Europe/London'); } diff --git a/tests/Mf2/ParseDTTest.php b/tests/Mf2/ParseDTTest.php index fb917d6..893a89e 100644 --- a/tests/Mf2/ParseDTTest.php +++ b/tests/Mf2/ParseDTTest.php @@ -7,11 +7,11 @@ namespace Mf2\Parser\Test; use Mf2\Parser; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -class ParseDTTest extends PHPUnit_Framework_TestCase { +class ParseDTTest extends TestCase { - public function setUp() { + protected function setUp() { date_default_timezone_set('Europe/London'); } diff --git a/tests/Mf2/ParseHtmlIdTest.php b/tests/Mf2/ParseHtmlIdTest.php index cb3f5b1..aa5a11d 100644 --- a/tests/Mf2/ParseHtmlIdTest.php +++ b/tests/Mf2/ParseHtmlIdTest.php @@ -6,14 +6,13 @@ namespace Mf2\Parser\Test; use Mf2; -use Mf2\Parser; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; /** - * + * */ -class ParseHtmlIdTest extends PHPUnit_Framework_TestCase { - public function setUp() { +class ParseHtmlIdTest extends TestCase { + protected function setUp() { date_default_timezone_set('Europe/London'); } diff --git a/tests/Mf2/ParseImpliedTest.php b/tests/Mf2/ParseImpliedTest.php index b70fb75..62ec8e2 100644 --- a/tests/Mf2/ParseImpliedTest.php +++ b/tests/Mf2/ParseImpliedTest.php @@ -7,13 +7,13 @@ use Mf2; use Mf2\Parser; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; /** * @todo some of these can be made into single tests with dataProviders */ -class ParseImpliedTest extends PHPUnit_Framework_TestCase { - public function setUp() { +class ParseImpliedTest extends TestCase { + protected function setUp() { date_default_timezone_set('Europe/London'); } diff --git a/tests/Mf2/ParseLanguageTest.php b/tests/Mf2/ParseLanguageTest.php index ad2560d..e62eaac 100644 --- a/tests/Mf2/ParseLanguageTest.php +++ b/tests/Mf2/ParseLanguageTest.php @@ -7,12 +7,11 @@ namespace Mf2\Parser\Test; use Mf2\Parser; -use Mf2; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -class ParseLanguageTest extends PHPUnit_Framework_TestCase { +class ParseLanguageTest extends TestCase { - public function setUp() { + protected function setUp() { date_default_timezone_set('Europe/London'); } diff --git a/tests/Mf2/ParsePTest.php b/tests/Mf2/ParsePTest.php index aba138e..99a9c1e 100644 --- a/tests/Mf2/ParsePTest.php +++ b/tests/Mf2/ParsePTest.php @@ -8,12 +8,12 @@ use Mf2; use Mf2\Parser; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -class ParsePTest extends PHPUnit_Framework_TestCase { +class ParsePTest extends TestCase { - public function setUp() { + protected function setUp() { date_default_timezone_set('Europe/London'); } diff --git a/tests/Mf2/ParseUTest.php b/tests/Mf2/ParseUTest.php index 0473280..ded1aa0 100644 --- a/tests/Mf2/ParseUTest.php +++ b/tests/Mf2/ParseUTest.php @@ -7,10 +7,10 @@ use Mf2; use Mf2\Parser; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -class ParseUTest extends PHPUnit_Framework_TestCase { - public function setUp() { +class ParseUTest extends TestCase { + protected function setUp() { date_default_timezone_set('Europe/London'); } diff --git a/tests/Mf2/ParseValueClassTitleTest.php b/tests/Mf2/ParseValueClassTitleTest.php index cea40b6..29e43fa 100644 --- a/tests/Mf2/ParseValueClassTitleTest.php +++ b/tests/Mf2/ParseValueClassTitleTest.php @@ -8,11 +8,11 @@ use Mf2; use Mf2\Parser; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -class ParseValueClassTitleTest extends PHPUnit_Framework_TestCase { +class ParseValueClassTitleTest extends TestCase { - public function setUp() { + protected function setUp() { date_default_timezone_set('Europe/London'); } diff --git a/tests/Mf2/ParserTest.php b/tests/Mf2/ParserTest.php index f30e2bf..2bc7e9e 100644 --- a/tests/Mf2/ParserTest.php +++ b/tests/Mf2/ParserTest.php @@ -2,9 +2,9 @@ namespace Mf2\Parser\Test; -use Mf2\Parser; use Mf2; -use PHPUnit_Framework_TestCase; +use Mf2\Parser; +use PHPUnit\Framework\TestCase; /** * Parser Test @@ -14,9 +14,9 @@ * * Stuff for parsing E goes in here until there is enough of it to go elsewhere (like, never?) */ -class ParserTest extends PHPUnit_Framework_TestCase { +class ParserTest extends TestCase { - public function setUp() { + protected function setUp() { date_default_timezone_set('Europe/London'); } diff --git a/tests/Mf2/PlainTextTest.php b/tests/Mf2/PlainTextTest.php index df9722f..3114dcb 100644 --- a/tests/Mf2/PlainTextTest.php +++ b/tests/Mf2/PlainTextTest.php @@ -2,7 +2,9 @@ namespace Mf2\Parser\Test; -class PlainTextTest extends \PHPUnit_Framework_TestCase { +use PHPUnit\Framework\TestCase; + +class PlainTextTest extends TestCase { /** * @dataProvider aaronpkExpectations */ diff --git a/tests/Mf2/RelTest.php b/tests/Mf2/RelTest.php index 2d737a2..8e204fa 100644 --- a/tests/Mf2/RelTest.php +++ b/tests/Mf2/RelTest.php @@ -7,10 +7,10 @@ use Mf2; use Mf2\Parser; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -class RelTest extends PHPUnit_Framework_TestCase { - public function setUp() { +class RelTest extends TestCase { + protected function setUp() { date_default_timezone_set('Europe/London'); } diff --git a/tests/Mf2/URLTest.php b/tests/Mf2/URLTest.php index e7d37d7..b0ba511 100644 --- a/tests/Mf2/URLTest.php +++ b/tests/Mf2/URLTest.php @@ -7,11 +7,11 @@ namespace Mf2\Parser\Test; use Mf2; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -class UrlTest extends PHPUnit_Framework_TestCase { +class UrlTest extends TestCase { - public function setUp() { + protected function setUp() { date_default_timezone_set('Europe/London'); } diff --git a/tests/test-suite/test-suite.php b/tests/test-suite/test-suite.php index 584cf55..9c946bd 100644 --- a/tests/test-suite/test-suite.php +++ b/tests/test-suite/test-suite.php @@ -22,7 +22,6 @@ namespace Mf2\Parser\TestSuite; use Mf2\Parser; -use Mf2; error_reporting(E_ALL); require dirname(__DIR__) . '/../vendor/autoload.php';