From e131c499a424da633d09172e588b66cd7a935031 Mon Sep 17 00:00:00 2001 From: Scott Aubrey Date: Thu, 7 Nov 2024 16:10:57 +0000 Subject: [PATCH 1/2] Update to a later version of PHPUnit --- composer.json | 2 +- test/Collection/ArraySequenceTest.php | 4 ++-- test/Collection/EmptySequenceTest.php | 4 ++-- test/Collection/PromiseSequenceTest.php | 4 ++-- test/Model/AccessControlTest.php | 4 ++-- test/Model/AddressTest.php | 4 ++-- test/Model/AnnotationDocumentTest.php | 4 ++-- test/Model/AnnotationTest.php | 4 ++-- test/Model/AnnualReportTest.php | 4 ++-- test/Model/AppendixTest.php | 4 ++-- test/Model/ArticleHistoryTest.php | 4 ++-- test/Model/ArticlePreprintTest.php | 4 ++-- test/Model/ArticleSectionTest.php | 4 ++-- test/Model/ArticleVersionTest.php | 4 ++-- test/Model/AssetFileTest.php | 4 ++-- test/Model/AuthorTest.php | 4 ++-- test/Model/BioprotocolTest.php | 4 ++-- test/Model/Block/BoxTest.php | 4 ++-- test/Model/Block/ButtonTest.php | 4 ++-- test/Model/Block/CodeTest.php | 4 ++-- test/Model/Block/ExcerptTest.php | 4 ++-- test/Model/Block/FigshareTest.php | 4 ++-- test/Model/Block/FigureAssetTest.php | 4 ++-- test/Model/Block/FigureTest.php | 4 ++-- test/Model/Block/GoogleMapTest.php | 4 ++-- test/Model/Block/ImageTest.php | 4 ++-- test/Model/Block/ListingTest.php | 4 ++-- test/Model/Block/MathMLTest.php | 4 ++-- test/Model/Block/ParagraphTest.php | 4 ++-- test/Model/Block/ProfileTest.php | 4 ++-- test/Model/Block/QuestionTest.php | 4 ++-- test/Model/Block/QuoteTest.php | 4 ++-- test/Model/Block/SectionTest.php | 4 ++-- test/Model/Block/TableTest.php | 4 ++-- test/Model/Block/TweetTest.php | 4 ++-- test/Model/Block/VideoTest.php | 4 ++-- test/Model/Block/YouTubeTest.php | 4 ++-- test/Model/BlogArticleTest.php | 4 ++-- test/Model/CitationsMetricSourceTest.php | 4 ++-- test/Model/CitationsMetricTest.php | 4 ++-- test/Model/CollectionTest.php | 4 ++-- test/Model/CopyrightTest.php | 4 ++-- test/Model/CoverTest.php | 4 ++-- test/Model/DataSetTest.php | 4 ++-- test/Model/DateTest.php | 4 ++-- test/Model/DigestTest.php | 4 ++-- test/Model/EventTest.php | 4 ++-- test/Model/ExternalArticleTest.php | 4 ++-- test/Model/FootnoteTest.php | 4 ++-- test/Model/HighlightTest.php | 4 ++-- test/Model/IdentifierTest.php | 4 ++-- test/Model/ImageTest.php | 4 ++-- test/Model/InterviewTest.php | 4 ++-- test/Model/IntervieweeCvLineTest.php | 4 ++-- test/Model/IntervieweeTest.php | 4 ++-- test/Model/JobAdvertTest.php | 4 ++-- test/Model/LabsPostTest.php | 4 ++-- test/Model/MediaContactTest.php | 4 ++-- test/Model/OnBehalfOfAuthorTest.php | 4 ++-- test/Model/PersonDetailsTest.php | 4 ++-- test/Model/PersonResearchTest.php | 4 ++-- test/Model/PersonTest.php | 4 ++-- test/Model/PlaceTest.php | 4 ++-- test/Model/PodcastEpisodeChapterModelTest.php | 4 ++-- test/Model/PodcastEpisodeChapterTest.php | 4 ++-- test/Model/PodcastEpisodeSourceTest.php | 4 ++-- test/Model/PodcastEpisodeTest.php | 4 ++-- test/Model/PressPackageTest.php | 4 ++-- test/Model/ProfileTest.php | 4 ++-- test/Model/PromotionalCollectionTest.php | 4 ++-- test/Model/PublicReviewTest.php | 4 ++-- test/Model/Reference/BookChapterReferenceTest.php | 4 ++-- test/Model/Reference/BookReferenceTest.php | 4 ++-- test/Model/Reference/ClinicalTrialReferenceTest.php | 4 ++-- test/Model/Reference/ConferenceProceedingReferenceTest.php | 4 ++-- test/Model/Reference/DataReferenceTest.php | 4 ++-- test/Model/Reference/JournalReferenceTest.php | 4 ++-- test/Model/Reference/PatentReferenceTest.php | 4 ++-- test/Model/Reference/PeriodicalReferenceTest.php | 4 ++-- test/Model/Reference/PreprintReferenceTest.php | 4 ++-- test/Model/Reference/ReferencePageRangeTest.php | 4 ++-- test/Model/Reference/ReportReferenceTest.php | 4 ++-- test/Model/Reference/SoftwareReferenceTest.php | 4 ++-- test/Model/Reference/StringReferencePageTest.php | 4 ++-- test/Model/Reference/ThesisReferenceTest.php | 4 ++-- test/Model/Reference/UnknownReferenceTest.php | 4 ++-- test/Model/Reference/WebReferenceTest.php | 4 ++-- test/Model/ReviewedPreprintTest.php | 4 ++-- test/Model/ReviewerTest.php | 4 ++-- test/Model/SearchSubjectsTest.php | 3 ++- test/Model/SubjectTest.php | 4 ++-- test/Serializer/Block/BoxNormalizerTest.php | 4 ++-- test/Serializer/Block/ButtonNormalizerTest.php | 4 ++-- test/Serializer/Block/CodeNormalizerTest.php | 4 ++-- test/Serializer/Block/ExcerptNormalizerTest.php | 4 ++-- test/Serializer/Block/ListingNormalizerTest.php | 4 ++-- test/Serializer/Block/MathMLNormalizerTest.php | 4 ++-- test/Serializer/Block/ParagraphNormalizerTest.php | 4 ++-- test/Serializer/Block/QuestionNormalizerTest.php | 4 ++-- test/Serializer/Block/QuoteNormalizerTest.php | 4 ++-- test/Serializer/Block/SectionNormalizerTest.php | 4 ++-- test/Serializer/IdentityMapTest.php | 4 +++- test/Serializer/OnBehalfOfAuthorNormalizerTest.php | 4 ++-- test/Serializer/PublicReviewNormalizerTest.php | 4 ++-- test/Serializer/Reference/ThesisReferenceNormalizerTest.php | 4 ++-- test/Serializer/ReviewerNormalizerTest.php | 4 ++-- test/Serializer/SnippetDenormalizerTest.php | 4 ++-- test/TestCase.php | 4 ++-- 108 files changed, 216 insertions(+), 213 deletions(-) diff --git a/composer.json b/composer.json index c1f5e38e..6515ae47 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "mtdowling/jmespath.php": "^2.0", "phpspec/phpspec": "^5.1 || ^6.3 || ^7.5", "phpspec/prophecy": "^1.10", - "phpunit/phpunit": "^5.2", + "phpunit/phpunit": "^6.5", "psr/http-message": "^1.0", "squizlabs/php_codesniffer": "^3.5" }, diff --git a/test/Collection/ArraySequenceTest.php b/test/Collection/ArraySequenceTest.php index 2cd7cd99..b67ace32 100644 --- a/test/Collection/ArraySequenceTest.php +++ b/test/Collection/ArraySequenceTest.php @@ -5,9 +5,9 @@ use BadMethodCallException; use eLife\ApiSdk\Collection\ArraySequence; use eLife\ApiSdk\Collection\Sequence; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class ArraySequenceTest extends PHPUnit_Framework_TestCase +final class ArraySequenceTest extends TestCase { /** * @test diff --git a/test/Collection/EmptySequenceTest.php b/test/Collection/EmptySequenceTest.php index 6cbcf532..daa1dac0 100644 --- a/test/Collection/EmptySequenceTest.php +++ b/test/Collection/EmptySequenceTest.php @@ -6,9 +6,9 @@ use eLife\ApiSdk\Collection\EmptySequence; use eLife\ApiSdk\Collection\Sequence; use Exception; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class EmptySequenceTest extends PHPUnit_Framework_TestCase +final class EmptySequenceTest extends TestCase { /** * @test diff --git a/test/Collection/PromiseSequenceTest.php b/test/Collection/PromiseSequenceTest.php index ca3c7d68..33a16873 100644 --- a/test/Collection/PromiseSequenceTest.php +++ b/test/Collection/PromiseSequenceTest.php @@ -13,9 +13,9 @@ use GuzzleHttp\Promise\PromiseInterface; use function GuzzleHttp\Promise\rejection_for; use LogicException; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class PromiseSequenceTest extends PHPUnit_Framework_TestCase +final class PromiseSequenceTest extends TestCase { /** * @test diff --git a/test/Model/AccessControlTest.php b/test/Model/AccessControlTest.php index deabf168..9a53d88d 100644 --- a/test/Model/AccessControlTest.php +++ b/test/Model/AccessControlTest.php @@ -3,10 +3,10 @@ namespace test\eLife\ApiSdk\Model; use eLife\ApiSdk\Model\AccessControl; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class AccessControlTest extends PHPUnit_Framework_TestCase +final class AccessControlTest extends TestCase { /** * @test diff --git a/test/Model/AddressTest.php b/test/Model/AddressTest.php index e7861e9e..2caf0abd 100644 --- a/test/Model/AddressTest.php +++ b/test/Model/AddressTest.php @@ -5,10 +5,10 @@ use eLife\ApiSdk\Collection\ArraySequence; use eLife\ApiSdk\Collection\EmptySequence; use eLife\ApiSdk\Model\Address; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class AddressTest extends PHPUnit_Framework_TestCase +final class AddressTest extends TestCase { /** * @test diff --git a/test/Model/AnnotationDocumentTest.php b/test/Model/AnnotationDocumentTest.php index 8e47d822..93729c79 100644 --- a/test/Model/AnnotationDocumentTest.php +++ b/test/Model/AnnotationDocumentTest.php @@ -3,9 +3,9 @@ namespace test\eLife\ApiSdk\Model; use eLife\ApiSdk\Model\AnnotationDocument; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class AnnotationDocumentTest extends PHPUnit_Framework_TestCase +final class AnnotationDocumentTest extends TestCase { /** * @test diff --git a/test/Model/AnnotationTest.php b/test/Model/AnnotationTest.php index c4e0066d..3ddf8025 100644 --- a/test/Model/AnnotationTest.php +++ b/test/Model/AnnotationTest.php @@ -18,9 +18,9 @@ use eLife\ApiSdk\Model\Identifier; use eLife\ApiSdk\Model\Model; use function GuzzleHttp\Promise\rejection_for; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class AnnotationTest extends PHPUnit_Framework_TestCase +final class AnnotationTest extends TestCase { /** * @test diff --git a/test/Model/AnnualReportTest.php b/test/Model/AnnualReportTest.php index cee094a6..87923683 100644 --- a/test/Model/AnnualReportTest.php +++ b/test/Model/AnnualReportTest.php @@ -7,9 +7,9 @@ use eLife\ApiSdk\Model\HasImpactStatement; use eLife\ApiSdk\Model\HasPdf; use eLife\ApiSdk\Model\Identifier; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class AnnualReportTest extends PHPUnit_Framework_TestCase +final class AnnualReportTest extends TestCase { /** * @test diff --git a/test/Model/AppendixTest.php b/test/Model/AppendixTest.php index 31f96e26..8a18e134 100644 --- a/test/Model/AppendixTest.php +++ b/test/Model/AppendixTest.php @@ -8,9 +8,9 @@ use eLife\ApiSdk\Model\Block\Section; use eLife\ApiSdk\Model\HasDoi; use eLife\ApiSdk\Model\HasId; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class AppendixTest extends PHPUnit_Framework_TestCase +final class AppendixTest extends TestCase { /** * @test diff --git a/test/Model/ArticleHistoryTest.php b/test/Model/ArticleHistoryTest.php index d385b0e3..44978e86 100644 --- a/test/Model/ArticleHistoryTest.php +++ b/test/Model/ArticleHistoryTest.php @@ -8,10 +8,10 @@ use eLife\ApiSdk\Model\ArticlePoA; use eLife\ApiSdk\Model\ArticlePreprint; use eLife\ApiSdk\Model\Date; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class ArticleHistoryTest extends PHPUnit_Framework_TestCase +final class ArticleHistoryTest extends TestCase { /** * @test diff --git a/test/Model/ArticlePreprintTest.php b/test/Model/ArticlePreprintTest.php index b1ea28cb..8bfd3371 100644 --- a/test/Model/ArticlePreprintTest.php +++ b/test/Model/ArticlePreprintTest.php @@ -25,10 +25,10 @@ use eLife\ApiSdk\Model\Subject; use function GuzzleHttp\Promise\promise_for; use function GuzzleHttp\Promise\rejection_for; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class ArticlePreprintTest extends PHPUnit_Framework_TestCase +final class ArticlePreprintTest extends TestCase { /** * @test diff --git a/test/Model/ArticleSectionTest.php b/test/Model/ArticleSectionTest.php index e5f7e349..026166a4 100644 --- a/test/Model/ArticleSectionTest.php +++ b/test/Model/ArticleSectionTest.php @@ -8,9 +8,9 @@ use eLife\ApiSdk\Model\Block\Paragraph; use eLife\ApiSdk\Model\HasDoi; use eLife\ApiSdk\Model\HasId; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class ArticleSectionTest extends PHPUnit_Framework_TestCase +final class ArticleSectionTest extends TestCase { /** * @test diff --git a/test/Model/ArticleVersionTest.php b/test/Model/ArticleVersionTest.php index a39fe28d..ef3de871 100644 --- a/test/Model/ArticleVersionTest.php +++ b/test/Model/ArticleVersionTest.php @@ -31,10 +31,10 @@ use eLife\ApiSdk\Model\PersonDetails; use eLife\ApiSdk\Model\Place; use eLife\ApiSdk\Model\Subject; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -abstract class ArticleVersionTest extends PHPUnit_Framework_TestCase +abstract class ArticleVersionTest extends TestCase { /** @var Builder */ protected $builder; diff --git a/test/Model/AssetFileTest.php b/test/Model/AssetFileTest.php index 49804fd6..3e15cd09 100644 --- a/test/Model/AssetFileTest.php +++ b/test/Model/AssetFileTest.php @@ -9,9 +9,9 @@ use eLife\ApiSdk\Model\File; use eLife\ApiSdk\Model\HasAttribution; use eLife\ApiSdk\Model\HasCaption; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class AssetFileTest extends PHPUnit_Framework_TestCase +final class AssetFileTest extends TestCase { /** * @test diff --git a/test/Model/AuthorTest.php b/test/Model/AuthorTest.php index 6f59f7d2..0e4f0b1b 100644 --- a/test/Model/AuthorTest.php +++ b/test/Model/AuthorTest.php @@ -6,10 +6,10 @@ use eLife\ApiSdk\Model\Author; use eLife\ApiSdk\Model\AuthorEntry; use eLife\ApiSdk\Model\Place; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -abstract class AuthorTest extends PHPUnit_Framework_TestCase +abstract class AuthorTest extends TestCase { /** * @test diff --git a/test/Model/BioprotocolTest.php b/test/Model/BioprotocolTest.php index 60515709..4027cc50 100644 --- a/test/Model/BioprotocolTest.php +++ b/test/Model/BioprotocolTest.php @@ -3,10 +3,10 @@ namespace test\eLife\ApiSdk\Model; use eLife\ApiSdk\Model\Bioprotocol; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class BioprotocolTest extends PHPUnit_Framework_TestCase +final class BioprotocolTest extends TestCase { /** * @test diff --git a/test/Model/Block/BoxTest.php b/test/Model/Block/BoxTest.php index 67556114..115a5daa 100644 --- a/test/Model/Block/BoxTest.php +++ b/test/Model/Block/BoxTest.php @@ -9,9 +9,9 @@ use eLife\ApiSdk\Model\HasContent; use eLife\ApiSdk\Model\HasDoi; use eLife\ApiSdk\Model\HasId; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class BoxTest extends PHPUnit_Framework_TestCase +final class BoxTest extends TestCase { /** * @test diff --git a/test/Model/Block/ButtonTest.php b/test/Model/Block/ButtonTest.php index f08891ec..21405422 100644 --- a/test/Model/Block/ButtonTest.php +++ b/test/Model/Block/ButtonTest.php @@ -4,9 +4,9 @@ use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\Button; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class ButtonTest extends PHPUnit_Framework_TestCase +final class ButtonTest extends TestCase { /** * @test diff --git a/test/Model/Block/CodeTest.php b/test/Model/Block/CodeTest.php index 6ae3ad6f..a144506d 100644 --- a/test/Model/Block/CodeTest.php +++ b/test/Model/Block/CodeTest.php @@ -4,9 +4,9 @@ use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\Code; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class CodeTest extends PHPUnit_Framework_TestCase +final class CodeTest extends TestCase { /** * @test diff --git a/test/Model/Block/ExcerptTest.php b/test/Model/Block/ExcerptTest.php index 81c01809..ef1e9ab4 100644 --- a/test/Model/Block/ExcerptTest.php +++ b/test/Model/Block/ExcerptTest.php @@ -6,9 +6,9 @@ use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\Excerpt; use eLife\ApiSdk\Model\Block\Paragraph; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class ExcerptTest extends PHPUnit_Framework_TestCase +final class ExcerptTest extends TestCase { /** * @test diff --git a/test/Model/Block/FigshareTest.php b/test/Model/Block/FigshareTest.php index 0558c071..116d7da7 100644 --- a/test/Model/Block/FigshareTest.php +++ b/test/Model/Block/FigshareTest.php @@ -5,9 +5,9 @@ use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\Figshare; use eLife\ApiSdk\Model\HasId; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class FigshareTest extends PHPUnit_Framework_TestCase +final class FigshareTest extends TestCase { /** * @test diff --git a/test/Model/Block/FigureAssetTest.php b/test/Model/Block/FigureAssetTest.php index 40e15770..4ce81bbb 100644 --- a/test/Model/Block/FigureAssetTest.php +++ b/test/Model/Block/FigureAssetTest.php @@ -9,9 +9,9 @@ use eLife\ApiSdk\Model\Block\Table; use eLife\ApiSdk\Model\File; use eLife\ApiSdk\Model\HasDoi; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class FigureAssetTest extends PHPUnit_Framework_TestCase +final class FigureAssetTest extends TestCase { /** * @test diff --git a/test/Model/Block/FigureTest.php b/test/Model/Block/FigureTest.php index c04d0f55..27ee368f 100644 --- a/test/Model/Block/FigureTest.php +++ b/test/Model/Block/FigureTest.php @@ -9,10 +9,10 @@ use eLife\ApiSdk\Model\Block\FigureAsset; use eLife\ApiSdk\Model\Block\Image; use eLife\ApiSdk\Model\Image as ImageFile; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class FigureTest extends PHPUnit_Framework_TestCase +final class FigureTest extends TestCase { /** * @test diff --git a/test/Model/Block/GoogleMapTest.php b/test/Model/Block/GoogleMapTest.php index 7657f0c1..f0a59472 100644 --- a/test/Model/Block/GoogleMapTest.php +++ b/test/Model/Block/GoogleMapTest.php @@ -5,9 +5,9 @@ use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\GoogleMap; use eLife\ApiSdk\Model\HasId; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class GoogleMapTest extends PHPUnit_Framework_TestCase +final class GoogleMapTest extends TestCase { /** * @test diff --git a/test/Model/Block/ImageTest.php b/test/Model/Block/ImageTest.php index 245a3f9d..7717c1a2 100644 --- a/test/Model/Block/ImageTest.php +++ b/test/Model/Block/ImageTest.php @@ -8,10 +8,10 @@ use eLife\ApiSdk\Model\Block\Paragraph; use eLife\ApiSdk\Model\BlockWithCaption; use eLife\ApiSdk\Model\Image as ImageFile; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class ImageTest extends PHPUnit_Framework_TestCase +final class ImageTest extends TestCase { /** * @test diff --git a/test/Model/Block/ListingTest.php b/test/Model/Block/ListingTest.php index b22b1dc8..3b60de7a 100644 --- a/test/Model/Block/ListingTest.php +++ b/test/Model/Block/ListingTest.php @@ -5,9 +5,9 @@ use eLife\ApiSdk\Collection\ArraySequence; use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\Listing; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class ListingTest extends PHPUnit_Framework_TestCase +final class ListingTest extends TestCase { /** * @test diff --git a/test/Model/Block/MathMLTest.php b/test/Model/Block/MathMLTest.php index bde90369..f874f376 100644 --- a/test/Model/Block/MathMLTest.php +++ b/test/Model/Block/MathMLTest.php @@ -5,9 +5,9 @@ use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\MathML; use eLife\ApiSdk\Model\HasId; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class MathMLTest extends PHPUnit_Framework_TestCase +final class MathMLTest extends TestCase { /** * @test diff --git a/test/Model/Block/ParagraphTest.php b/test/Model/Block/ParagraphTest.php index 65f05b63..f2b2d4dc 100644 --- a/test/Model/Block/ParagraphTest.php +++ b/test/Model/Block/ParagraphTest.php @@ -4,9 +4,9 @@ use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\Paragraph; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class ParagraphTest extends PHPUnit_Framework_TestCase +final class ParagraphTest extends TestCase { /** * @test diff --git a/test/Model/Block/ProfileTest.php b/test/Model/Block/ProfileTest.php index 05065655..60805810 100644 --- a/test/Model/Block/ProfileTest.php +++ b/test/Model/Block/ProfileTest.php @@ -9,10 +9,10 @@ use eLife\ApiSdk\Model\Block\Profile; use eLife\ApiSdk\Model\HasContent; use eLife\ApiSdk\Model\Image; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class ProfileTest extends PHPUnit_Framework_TestCase +final class ProfileTest extends TestCase { /** * @test diff --git a/test/Model/Block/QuestionTest.php b/test/Model/Block/QuestionTest.php index 058e94ef..3acb871b 100644 --- a/test/Model/Block/QuestionTest.php +++ b/test/Model/Block/QuestionTest.php @@ -5,9 +5,9 @@ use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\Paragraph; use eLife\ApiSdk\Model\Block\Question; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class QuestionTest extends PHPUnit_Framework_TestCase +final class QuestionTest extends TestCase { /** * @test diff --git a/test/Model/Block/QuoteTest.php b/test/Model/Block/QuoteTest.php index 462ff110..f9d84793 100644 --- a/test/Model/Block/QuoteTest.php +++ b/test/Model/Block/QuoteTest.php @@ -5,9 +5,9 @@ use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\Paragraph; use eLife\ApiSdk\Model\Block\Quote; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class QuoteTest extends PHPUnit_Framework_TestCase +final class QuoteTest extends TestCase { /** * @test diff --git a/test/Model/Block/SectionTest.php b/test/Model/Block/SectionTest.php index afe416a1..f58b5ab3 100644 --- a/test/Model/Block/SectionTest.php +++ b/test/Model/Block/SectionTest.php @@ -8,9 +8,9 @@ use eLife\ApiSdk\Model\Block\Section; use eLife\ApiSdk\Model\HasContent; use eLife\ApiSdk\Model\HasId; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class SectionTest extends PHPUnit_Framework_TestCase +final class SectionTest extends TestCase { /** * @test diff --git a/test/Model/Block/TableTest.php b/test/Model/Block/TableTest.php index 7629baab..17afd006 100644 --- a/test/Model/Block/TableTest.php +++ b/test/Model/Block/TableTest.php @@ -9,9 +9,9 @@ use eLife\ApiSdk\Model\BlockWithCaption; use eLife\ApiSdk\Model\Footnote; use eLife\ApiSdk\Model\HasAttribution; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class TableTest extends PHPUnit_Framework_TestCase +final class TableTest extends TestCase { /** * @test diff --git a/test/Model/Block/TweetTest.php b/test/Model/Block/TweetTest.php index c06c4791..0400f2ad 100644 --- a/test/Model/Block/TweetTest.php +++ b/test/Model/Block/TweetTest.php @@ -6,9 +6,9 @@ use eLife\ApiSdk\Model\Block\Tweet; use eLife\ApiSdk\Model\Date; use eLife\ApiSdk\Model\HasId; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class TweetTest extends PHPUnit_Framework_TestCase +final class TweetTest extends TestCase { /** * @test diff --git a/test/Model/Block/VideoTest.php b/test/Model/Block/VideoTest.php index fb34370f..6bc2e2ab 100644 --- a/test/Model/Block/VideoTest.php +++ b/test/Model/Block/VideoTest.php @@ -10,10 +10,10 @@ use eLife\ApiSdk\Model\BlockWithCaption; use eLife\ApiSdk\Model\HasAttribution; use eLife\ApiSdk\Model\Image; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class VideoTest extends PHPUnit_Framework_TestCase +final class VideoTest extends TestCase { /** * @test diff --git a/test/Model/Block/YouTubeTest.php b/test/Model/Block/YouTubeTest.php index 1ff89a2a..c5a84ef2 100644 --- a/test/Model/Block/YouTubeTest.php +++ b/test/Model/Block/YouTubeTest.php @@ -8,9 +8,9 @@ use eLife\ApiSdk\Model\Block\Paragraph; use eLife\ApiSdk\Model\Block\YouTube; use eLife\ApiSdk\Model\HasId; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class YouTubeTest extends PHPUnit_Framework_TestCase +final class YouTubeTest extends TestCase { /** * @test diff --git a/test/Model/BlogArticleTest.php b/test/Model/BlogArticleTest.php index ed8f01ac..00b3ea6c 100644 --- a/test/Model/BlogArticleTest.php +++ b/test/Model/BlogArticleTest.php @@ -24,10 +24,10 @@ use eLife\ApiSdk\Model\Subject; use function GuzzleHttp\Promise\promise_for; use function GuzzleHttp\Promise\rejection_for; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class BlogArticleTest extends PHPUnit_Framework_TestCase +final class BlogArticleTest extends TestCase { /** * @test diff --git a/test/Model/CitationsMetricSourceTest.php b/test/Model/CitationsMetricSourceTest.php index 798c04f5..38482206 100644 --- a/test/Model/CitationsMetricSourceTest.php +++ b/test/Model/CitationsMetricSourceTest.php @@ -3,9 +3,9 @@ namespace test\eLife\ApiSdk\Model; use eLife\ApiSdk\Model\CitationsMetricSource; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class CitationsMetricSourceTest extends PHPUnit_Framework_TestCase +final class CitationsMetricSourceTest extends TestCase { /** * @test diff --git a/test/Model/CitationsMetricTest.php b/test/Model/CitationsMetricTest.php index 93cdb572..ac5273aa 100644 --- a/test/Model/CitationsMetricTest.php +++ b/test/Model/CitationsMetricTest.php @@ -5,9 +5,9 @@ use eLife\ApiSdk\Collection; use eLife\ApiSdk\Model\CitationsMetric; use eLife\ApiSdk\Model\CitationsMetricSource; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class CitationsMetricTest extends PHPUnit_Framework_TestCase +final class CitationsMetricTest extends TestCase { /** * @test diff --git a/test/Model/CollectionTest.php b/test/Model/CollectionTest.php index c8b0c30e..ffc4353b 100644 --- a/test/Model/CollectionTest.php +++ b/test/Model/CollectionTest.php @@ -25,10 +25,10 @@ use eLife\ApiSdk\Model\Person; use eLife\ApiSdk\Model\PodcastEpisode; use eLife\ApiSdk\Model\Subject; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class CollectionTest extends PHPUnit_Framework_TestCase +final class CollectionTest extends TestCase { private $builder; diff --git a/test/Model/CopyrightTest.php b/test/Model/CopyrightTest.php index 9bf29d3d..e2dd550d 100644 --- a/test/Model/CopyrightTest.php +++ b/test/Model/CopyrightTest.php @@ -3,9 +3,9 @@ namespace test\eLife\ApiSdk\Model; use eLife\ApiSdk\Model\Copyright; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class CopyrightTest extends PHPUnit_Framework_TestCase +final class CopyrightTest extends TestCase { /** * @test diff --git a/test/Model/CoverTest.php b/test/Model/CoverTest.php index df3204d7..e7d42b06 100644 --- a/test/Model/CoverTest.php +++ b/test/Model/CoverTest.php @@ -7,10 +7,10 @@ use eLife\ApiSdk\Model\HasBanner; use eLife\ApiSdk\Model\HasImpactStatement; use eLife\ApiSdk\Model\Image; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class CoverTest extends PHPUnit_Framework_TestCase +final class CoverTest extends TestCase { /** * @test diff --git a/test/Model/DataSetTest.php b/test/Model/DataSetTest.php index edb117e0..58c2d9c0 100644 --- a/test/Model/DataSetTest.php +++ b/test/Model/DataSetTest.php @@ -8,10 +8,10 @@ use eLife\ApiSdk\Model\HasId; use eLife\ApiSdk\Model\PersonAuthor; use eLife\ApiSdk\Model\PersonDetails; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class DataSetTest extends PHPUnit_Framework_TestCase +final class DataSetTest extends TestCase { /** * @test diff --git a/test/Model/DateTest.php b/test/Model/DateTest.php index 47beeb07..6e39ac86 100644 --- a/test/Model/DateTest.php +++ b/test/Model/DateTest.php @@ -3,10 +3,10 @@ namespace test\eLife\ApiSdk\Model; use eLife\ApiSdk\Model\Date; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\TimezoneAwareTestCase; -final class DateTest extends PHPUnit_Framework_TestCase +final class DateTest extends TestCase { use TimezoneAwareTestCase; diff --git a/test/Model/DigestTest.php b/test/Model/DigestTest.php index 0ce55511..019fce2a 100644 --- a/test/Model/DigestTest.php +++ b/test/Model/DigestTest.php @@ -23,10 +23,10 @@ use eLife\ApiSdk\Model\Model; use eLife\ApiSdk\Model\Subject; use function GuzzleHttp\Promise\rejection_for; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class DigestTest extends PHPUnit_Framework_TestCase +final class DigestTest extends TestCase { private $builder; diff --git a/test/Model/EventTest.php b/test/Model/EventTest.php index b5a025e0..cff59c16 100644 --- a/test/Model/EventTest.php +++ b/test/Model/EventTest.php @@ -20,10 +20,10 @@ use eLife\ApiSdk\Model\Model; use function GuzzleHttp\Promise\promise_for; use function GuzzleHttp\Promise\rejection_for; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class EventTest extends PHPUnit_Framework_TestCase +final class EventTest extends TestCase { /** * @test diff --git a/test/Model/ExternalArticleTest.php b/test/Model/ExternalArticleTest.php index 1d0b43e3..947a9168 100644 --- a/test/Model/ExternalArticleTest.php +++ b/test/Model/ExternalArticleTest.php @@ -4,10 +4,10 @@ use eLife\ApiSdk\Model\Article; use eLife\ApiSdk\Model\ExternalArticle; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class ExternalArticleTest extends PHPUnit_Framework_TestCase +final class ExternalArticleTest extends TestCase { /** * @test diff --git a/test/Model/FootnoteTest.php b/test/Model/FootnoteTest.php index b7be7d1c..e3aa1519 100644 --- a/test/Model/FootnoteTest.php +++ b/test/Model/FootnoteTest.php @@ -6,9 +6,9 @@ use eLife\ApiSdk\Model\Block\Paragraph; use eLife\ApiSdk\Model\Footnote; use eLife\ApiSdk\Model\HasId; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class FootnoteTest extends PHPUnit_Framework_TestCase +final class FootnoteTest extends TestCase { /** * @test diff --git a/test/Model/HighlightTest.php b/test/Model/HighlightTest.php index 05731d64..ab18cff4 100644 --- a/test/Model/HighlightTest.php +++ b/test/Model/HighlightTest.php @@ -5,10 +5,10 @@ use eLife\ApiSdk\Model\ArticleVoR; use eLife\ApiSdk\Model\Highlight; use eLife\ApiSdk\Model\Image; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class HighlightTest extends PHPUnit_Framework_TestCase +final class HighlightTest extends TestCase { /** * @test diff --git a/test/Model/IdentifierTest.php b/test/Model/IdentifierTest.php index 43791f64..a27821cf 100644 --- a/test/Model/IdentifierTest.php +++ b/test/Model/IdentifierTest.php @@ -4,10 +4,10 @@ use eLife\ApiSdk\Model\Identifier; use InvalidArgumentException; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Traversable; -final class IdentifierTest extends PHPUnit_Framework_TestCase +final class IdentifierTest extends TestCase { /** * @test diff --git a/test/Model/ImageTest.php b/test/Model/ImageTest.php index 19f73935..1eedc1c8 100644 --- a/test/Model/ImageTest.php +++ b/test/Model/ImageTest.php @@ -7,10 +7,10 @@ use eLife\ApiSdk\Model\File; use eLife\ApiSdk\Model\HasAttribution; use eLife\ApiSdk\Model\Image; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class ImageTest extends PHPUnit_Framework_TestCase +final class ImageTest extends TestCase { /** * @test diff --git a/test/Model/InterviewTest.php b/test/Model/InterviewTest.php index 90509f67..db026082 100644 --- a/test/Model/InterviewTest.php +++ b/test/Model/InterviewTest.php @@ -22,10 +22,10 @@ use eLife\ApiSdk\Model\PersonDetails; use function GuzzleHttp\Promise\promise_for; use function GuzzleHttp\Promise\rejection_for; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class InterviewTest extends PHPUnit_Framework_TestCase +final class InterviewTest extends TestCase { /** * @test diff --git a/test/Model/IntervieweeCvLineTest.php b/test/Model/IntervieweeCvLineTest.php index 24f250e9..8cf7cbc0 100644 --- a/test/Model/IntervieweeCvLineTest.php +++ b/test/Model/IntervieweeCvLineTest.php @@ -3,9 +3,9 @@ namespace test\eLife\ApiSdk\Model; use eLife\ApiSdk\Model\IntervieweeCvLine; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class IntervieweeCvLineTest extends PHPUnit_Framework_TestCase +final class IntervieweeCvLineTest extends TestCase { /** * @test diff --git a/test/Model/IntervieweeTest.php b/test/Model/IntervieweeTest.php index 4f976e94..01566710 100644 --- a/test/Model/IntervieweeTest.php +++ b/test/Model/IntervieweeTest.php @@ -10,9 +10,9 @@ use eLife\ApiSdk\Model\IntervieweeCvLine; use eLife\ApiSdk\Model\PersonDetails; use function GuzzleHttp\Promise\rejection_for; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class IntervieweeTest extends PHPUnit_Framework_TestCase +final class IntervieweeTest extends TestCase { /** * @test diff --git a/test/Model/JobAdvertTest.php b/test/Model/JobAdvertTest.php index 78d78cce..920b4f5a 100644 --- a/test/Model/JobAdvertTest.php +++ b/test/Model/JobAdvertTest.php @@ -20,10 +20,10 @@ use eLife\ApiSdk\Model\Model; use function GuzzleHttp\Promise\promise_for; use function GuzzleHttp\Promise\rejection_for; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class JobAdvertTest extends PHPUnit_Framework_TestCase +final class JobAdvertTest extends TestCase { /** * @test diff --git a/test/Model/LabsPostTest.php b/test/Model/LabsPostTest.php index 1edb3efa..3586878e 100644 --- a/test/Model/LabsPostTest.php +++ b/test/Model/LabsPostTest.php @@ -19,10 +19,10 @@ use eLife\ApiSdk\Model\Model; use function GuzzleHttp\Promise\promise_for; use function GuzzleHttp\Promise\rejection_for; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class LabsPostTest extends PHPUnit_Framework_TestCase +final class LabsPostTest extends TestCase { /** * @test diff --git a/test/Model/MediaContactTest.php b/test/Model/MediaContactTest.php index 21bc6723..6389bec8 100644 --- a/test/Model/MediaContactTest.php +++ b/test/Model/MediaContactTest.php @@ -5,9 +5,9 @@ use eLife\ApiSdk\Model\MediaContact; use eLife\ApiSdk\Model\PersonDetails; use eLife\ApiSdk\Model\Place; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class MediaContactTest extends PHPUnit_Framework_TestCase +final class MediaContactTest extends TestCase { /** * @test diff --git a/test/Model/OnBehalfOfAuthorTest.php b/test/Model/OnBehalfOfAuthorTest.php index 46617f89..fba2b98d 100644 --- a/test/Model/OnBehalfOfAuthorTest.php +++ b/test/Model/OnBehalfOfAuthorTest.php @@ -4,9 +4,9 @@ use eLife\ApiSdk\Model\AuthorEntry; use eLife\ApiSdk\Model\OnBehalfOfAuthor; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class OnBehalfOfAuthorTest extends PHPUnit_Framework_TestCase +final class OnBehalfOfAuthorTest extends TestCase { /** * @test diff --git a/test/Model/PersonDetailsTest.php b/test/Model/PersonDetailsTest.php index 4437ec7a..ccd6ca41 100644 --- a/test/Model/PersonDetailsTest.php +++ b/test/Model/PersonDetailsTest.php @@ -3,9 +3,9 @@ namespace test\eLife\ApiSdk\Model; use eLife\ApiSdk\Model\PersonDetails; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class PersonDetailsTest extends PHPUnit_Framework_TestCase +final class PersonDetailsTest extends TestCase { /** * @test diff --git a/test/Model/PersonResearchTest.php b/test/Model/PersonResearchTest.php index 42e3e9ba..21268e40 100644 --- a/test/Model/PersonResearchTest.php +++ b/test/Model/PersonResearchTest.php @@ -9,9 +9,9 @@ use eLife\ApiSdk\Model\PersonResearch; use eLife\ApiSdk\Model\Subject; use function GuzzleHttp\Promise\rejection_for; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class PersonResearchTest extends PHPUnit_Framework_TestCase +final class PersonResearchTest extends TestCase { /** * @test diff --git a/test/Model/PersonTest.php b/test/Model/PersonTest.php index ae63bba3..bcdcc99e 100644 --- a/test/Model/PersonTest.php +++ b/test/Model/PersonTest.php @@ -18,10 +18,10 @@ use eLife\ApiSdk\Model\Place; use function GuzzleHttp\Promise\promise_for; use function GuzzleHttp\Promise\rejection_for; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class PersonTest extends PHPUnit_Framework_TestCase +final class PersonTest extends TestCase { /** * @test diff --git a/test/Model/PlaceTest.php b/test/Model/PlaceTest.php index 268a7b29..a2d8816a 100644 --- a/test/Model/PlaceTest.php +++ b/test/Model/PlaceTest.php @@ -5,10 +5,10 @@ use eLife\ApiSdk\Collection\ArraySequence; use eLife\ApiSdk\Model\Address; use eLife\ApiSdk\Model\Place; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class PlaceTest extends PHPUnit_Framework_TestCase +final class PlaceTest extends TestCase { /** * @test diff --git a/test/Model/PodcastEpisodeChapterModelTest.php b/test/Model/PodcastEpisodeChapterModelTest.php index f2f48f68..9d9e4dc6 100644 --- a/test/Model/PodcastEpisodeChapterModelTest.php +++ b/test/Model/PodcastEpisodeChapterModelTest.php @@ -6,10 +6,10 @@ use eLife\ApiSdk\Model\PodcastEpisode; use eLife\ApiSdk\Model\PodcastEpisodeChapter; use eLife\ApiSdk\Model\PodcastEpisodeChapterModel; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class PodcastEpisodeChapterModelTest extends PHPUnit_Framework_TestCase +final class PodcastEpisodeChapterModelTest extends TestCase { /** * @test diff --git a/test/Model/PodcastEpisodeChapterTest.php b/test/Model/PodcastEpisodeChapterTest.php index 6bee07a3..1fd55aa4 100644 --- a/test/Model/PodcastEpisodeChapterTest.php +++ b/test/Model/PodcastEpisodeChapterTest.php @@ -8,10 +8,10 @@ use eLife\ApiSdk\Model\HasContent; use eLife\ApiSdk\Model\HasImpactStatement; use eLife\ApiSdk\Model\PodcastEpisodeChapter; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class PodcastEpisodeChapterTest extends PHPUnit_Framework_TestCase +final class PodcastEpisodeChapterTest extends TestCase { /** * @test diff --git a/test/Model/PodcastEpisodeSourceTest.php b/test/Model/PodcastEpisodeSourceTest.php index 660d13d1..ec03afd5 100644 --- a/test/Model/PodcastEpisodeSourceTest.php +++ b/test/Model/PodcastEpisodeSourceTest.php @@ -3,9 +3,9 @@ namespace test\eLife\ApiSdk\Model; use eLife\ApiSdk\Model\PodcastEpisodeSource; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class PodcastEpisodeSourceTest extends PHPUnit_Framework_TestCase +final class PodcastEpisodeSourceTest extends TestCase { /** * @test diff --git a/test/Model/PodcastEpisodeTest.php b/test/Model/PodcastEpisodeTest.php index 64968b00..6bcc066d 100644 --- a/test/Model/PodcastEpisodeTest.php +++ b/test/Model/PodcastEpisodeTest.php @@ -22,10 +22,10 @@ use eLife\ApiSdk\Model\PodcastEpisodeSource; use function GuzzleHttp\Promise\promise_for; use function GuzzleHttp\Promise\rejection_for; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class PodcastEpisodeTest extends PHPUnit_Framework_TestCase +final class PodcastEpisodeTest extends TestCase { /** * @test diff --git a/test/Model/PressPackageTest.php b/test/Model/PressPackageTest.php index 44ad9af1..57a5a421 100644 --- a/test/Model/PressPackageTest.php +++ b/test/Model/PressPackageTest.php @@ -21,10 +21,10 @@ use eLife\ApiSdk\Model\PressPackage; use eLife\ApiSdk\Model\ReviewedPreprint; use eLife\ApiSdk\Model\Subject; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class PressPackageTest extends PHPUnit_Framework_TestCase +final class PressPackageTest extends TestCase { private $builder; diff --git a/test/Model/ProfileTest.php b/test/Model/ProfileTest.php index 4cf2e382..832c7e25 100644 --- a/test/Model/ProfileTest.php +++ b/test/Model/ProfileTest.php @@ -11,10 +11,10 @@ use eLife\ApiSdk\Model\PersonDetails; use eLife\ApiSdk\Model\Place; use eLife\ApiSdk\Model\Profile; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class ProfileTest extends PHPUnit_Framework_TestCase +final class ProfileTest extends TestCase { /** * @test diff --git a/test/Model/PromotionalCollectionTest.php b/test/Model/PromotionalCollectionTest.php index 15fe9acb..4204169c 100644 --- a/test/Model/PromotionalCollectionTest.php +++ b/test/Model/PromotionalCollectionTest.php @@ -25,10 +25,10 @@ use eLife\ApiSdk\Model\PodcastEpisode; use eLife\ApiSdk\Model\PromotionalCollection; use eLife\ApiSdk\Model\Subject; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class PromotionalCollectionTest extends PHPUnit_Framework_TestCase +final class PromotionalCollectionTest extends TestCase { private $builder; diff --git a/test/Model/PublicReviewTest.php b/test/Model/PublicReviewTest.php index ca747e1d..4fd7d7c1 100644 --- a/test/Model/PublicReviewTest.php +++ b/test/Model/PublicReviewTest.php @@ -8,9 +8,9 @@ use eLife\ApiSdk\Model\Block\Paragraph; use eLife\ApiSdk\Model\HasDoi; use eLife\ApiSdk\Model\HasId; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class PublicReviewTest extends PHPUnit_Framework_TestCase +final class PublicReviewTest extends TestCase { /** * @test diff --git a/test/Model/Reference/BookChapterReferenceTest.php b/test/Model/Reference/BookChapterReferenceTest.php index ed6a79ad..ee2eb4a7 100644 --- a/test/Model/Reference/BookChapterReferenceTest.php +++ b/test/Model/Reference/BookChapterReferenceTest.php @@ -11,9 +11,9 @@ use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\BookChapterReference; use eLife\ApiSdk\Model\Reference\StringReferencePage; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class BookChapterReferenceTest extends PHPUnit_Framework_TestCase +final class BookChapterReferenceTest extends TestCase { /** * @test diff --git a/test/Model/Reference/BookReferenceTest.php b/test/Model/Reference/BookReferenceTest.php index 80417841..c2f51331 100644 --- a/test/Model/Reference/BookReferenceTest.php +++ b/test/Model/Reference/BookReferenceTest.php @@ -10,9 +10,9 @@ use eLife\ApiSdk\Model\Place; use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\BookReference; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class BookReferenceTest extends PHPUnit_Framework_TestCase +final class BookReferenceTest extends TestCase { /** * @test diff --git a/test/Model/Reference/ClinicalTrialReferenceTest.php b/test/Model/Reference/ClinicalTrialReferenceTest.php index 6248db54..751db97c 100644 --- a/test/Model/Reference/ClinicalTrialReferenceTest.php +++ b/test/Model/Reference/ClinicalTrialReferenceTest.php @@ -8,9 +8,9 @@ use eLife\ApiSdk\Model\PersonDetails; use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\ClinicalTrialReference; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class ClinicalTrialReferenceTest extends PHPUnit_Framework_TestCase +final class ClinicalTrialReferenceTest extends TestCase { /** * @test diff --git a/test/Model/Reference/ConferenceProceedingReferenceTest.php b/test/Model/Reference/ConferenceProceedingReferenceTest.php index dbda98f0..95b11f52 100644 --- a/test/Model/Reference/ConferenceProceedingReferenceTest.php +++ b/test/Model/Reference/ConferenceProceedingReferenceTest.php @@ -11,9 +11,9 @@ use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\ConferenceProceedingReference; use eLife\ApiSdk\Model\Reference\StringReferencePage; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class ConferenceProceedingReferenceTest extends PHPUnit_Framework_TestCase +final class ConferenceProceedingReferenceTest extends TestCase { /** * @test diff --git a/test/Model/Reference/DataReferenceTest.php b/test/Model/Reference/DataReferenceTest.php index 988fa6f4..f9ff0e02 100644 --- a/test/Model/Reference/DataReferenceTest.php +++ b/test/Model/Reference/DataReferenceTest.php @@ -10,9 +10,9 @@ use eLife\ApiSdk\Model\Place; use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\DataReference; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class DataReferenceTest extends PHPUnit_Framework_TestCase +final class DataReferenceTest extends TestCase { /** * @test diff --git a/test/Model/Reference/JournalReferenceTest.php b/test/Model/Reference/JournalReferenceTest.php index d5eabed8..2dfa2efe 100644 --- a/test/Model/Reference/JournalReferenceTest.php +++ b/test/Model/Reference/JournalReferenceTest.php @@ -10,9 +10,9 @@ use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\JournalReference; use eLife\ApiSdk\Model\Reference\StringReferencePage; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class JournalReferenceTest extends PHPUnit_Framework_TestCase +final class JournalReferenceTest extends TestCase { /** * @test diff --git a/test/Model/Reference/PatentReferenceTest.php b/test/Model/Reference/PatentReferenceTest.php index 7f1ef605..db0cd493 100644 --- a/test/Model/Reference/PatentReferenceTest.php +++ b/test/Model/Reference/PatentReferenceTest.php @@ -8,9 +8,9 @@ use eLife\ApiSdk\Model\PersonDetails; use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\PatentReference; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class PatentReferenceTest extends PHPUnit_Framework_TestCase +final class PatentReferenceTest extends TestCase { /** * @test diff --git a/test/Model/Reference/PeriodicalReferenceTest.php b/test/Model/Reference/PeriodicalReferenceTest.php index 4395e7f4..b2de9fb4 100644 --- a/test/Model/Reference/PeriodicalReferenceTest.php +++ b/test/Model/Reference/PeriodicalReferenceTest.php @@ -9,9 +9,9 @@ use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\PeriodicalReference; use eLife\ApiSdk\Model\Reference\StringReferencePage; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class PeriodicalReferenceTest extends PHPUnit_Framework_TestCase +final class PeriodicalReferenceTest extends TestCase { /** * @test diff --git a/test/Model/Reference/PreprintReferenceTest.php b/test/Model/Reference/PreprintReferenceTest.php index f91ac6b1..4f9c1a26 100644 --- a/test/Model/Reference/PreprintReferenceTest.php +++ b/test/Model/Reference/PreprintReferenceTest.php @@ -9,9 +9,9 @@ use eLife\ApiSdk\Model\PersonDetails; use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\PreprintReference; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class PreprintReferenceTest extends PHPUnit_Framework_TestCase +final class PreprintReferenceTest extends TestCase { /** * @test diff --git a/test/Model/Reference/ReferencePageRangeTest.php b/test/Model/Reference/ReferencePageRangeTest.php index a58e31cc..2eb09e70 100644 --- a/test/Model/Reference/ReferencePageRangeTest.php +++ b/test/Model/Reference/ReferencePageRangeTest.php @@ -3,9 +3,9 @@ namespace test\eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\ReferencePageRange; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class ReferencePageRangeTest extends PHPUnit_Framework_TestCase +final class ReferencePageRangeTest extends TestCase { /** * @test diff --git a/test/Model/Reference/ReportReferenceTest.php b/test/Model/Reference/ReportReferenceTest.php index 0d969fa4..1a39d1e8 100644 --- a/test/Model/Reference/ReportReferenceTest.php +++ b/test/Model/Reference/ReportReferenceTest.php @@ -10,9 +10,9 @@ use eLife\ApiSdk\Model\Place; use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\ReportReference; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class ReportReferenceTest extends PHPUnit_Framework_TestCase +final class ReportReferenceTest extends TestCase { /** * @test diff --git a/test/Model/Reference/SoftwareReferenceTest.php b/test/Model/Reference/SoftwareReferenceTest.php index 8fef1626..8ee7302c 100644 --- a/test/Model/Reference/SoftwareReferenceTest.php +++ b/test/Model/Reference/SoftwareReferenceTest.php @@ -9,9 +9,9 @@ use eLife\ApiSdk\Model\Place; use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\SoftwareReference; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class SoftwareReferenceTest extends PHPUnit_Framework_TestCase +final class SoftwareReferenceTest extends TestCase { /** * @test diff --git a/test/Model/Reference/StringReferencePageTest.php b/test/Model/Reference/StringReferencePageTest.php index b56ef6ec..19d910e5 100644 --- a/test/Model/Reference/StringReferencePageTest.php +++ b/test/Model/Reference/StringReferencePageTest.php @@ -3,9 +3,9 @@ namespace test\eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\StringReferencePage; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class StringReferencePageTest extends PHPUnit_Framework_TestCase +final class StringReferencePageTest extends TestCase { /** * @test diff --git a/test/Model/Reference/ThesisReferenceTest.php b/test/Model/Reference/ThesisReferenceTest.php index b724e127..159dc938 100644 --- a/test/Model/Reference/ThesisReferenceTest.php +++ b/test/Model/Reference/ThesisReferenceTest.php @@ -9,9 +9,9 @@ use eLife\ApiSdk\Model\Place; use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\ThesisReference; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class ThesisReferenceTest extends PHPUnit_Framework_TestCase +final class ThesisReferenceTest extends TestCase { /** * @test diff --git a/test/Model/Reference/UnknownReferenceTest.php b/test/Model/Reference/UnknownReferenceTest.php index 961ed3db..0fe0c58b 100644 --- a/test/Model/Reference/UnknownReferenceTest.php +++ b/test/Model/Reference/UnknownReferenceTest.php @@ -8,9 +8,9 @@ use eLife\ApiSdk\Model\PersonDetails; use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\UnknownReference; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class UnknownReferenceTest extends PHPUnit_Framework_TestCase +final class UnknownReferenceTest extends TestCase { /** * @test diff --git a/test/Model/Reference/WebReferenceTest.php b/test/Model/Reference/WebReferenceTest.php index 832dc11f..e545f457 100644 --- a/test/Model/Reference/WebReferenceTest.php +++ b/test/Model/Reference/WebReferenceTest.php @@ -8,9 +8,9 @@ use eLife\ApiSdk\Model\PersonDetails; use eLife\ApiSdk\Model\Reference; use eLife\ApiSdk\Model\Reference\WebReference; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class WebReferenceTest extends PHPUnit_Framework_TestCase +final class WebReferenceTest extends TestCase { /** * @test diff --git a/test/Model/ReviewedPreprintTest.php b/test/Model/ReviewedPreprintTest.php index d3d0068b..0f126374 100644 --- a/test/Model/ReviewedPreprintTest.php +++ b/test/Model/ReviewedPreprintTest.php @@ -18,10 +18,10 @@ use eLife\ApiSdk\Model\Model; use eLife\ApiSdk\Model\ReviewedPreprint; use eLife\ApiSdk\Model\Subject; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class ReviewedPreprintTest extends PHPUnit_Framework_TestCase +final class ReviewedPreprintTest extends TestCase { private $builder; diff --git a/test/Model/ReviewerTest.php b/test/Model/ReviewerTest.php index 5516378f..dadb5acb 100644 --- a/test/Model/ReviewerTest.php +++ b/test/Model/ReviewerTest.php @@ -5,10 +5,10 @@ use eLife\ApiSdk\Model\PersonDetails; use eLife\ApiSdk\Model\Place; use eLife\ApiSdk\Model\Reviewer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class ReviewerTest extends PHPUnit_Framework_TestCase +final class ReviewerTest extends TestCase { /** * @test diff --git a/test/Model/SearchSubjectsTest.php b/test/Model/SearchSubjectsTest.php index 93386833..4466d48b 100644 --- a/test/Model/SearchSubjectsTest.php +++ b/test/Model/SearchSubjectsTest.php @@ -4,9 +4,10 @@ use eLife\ApiSdk\Model\SearchSubjects; use eLife\ApiSdk\Model\Subject; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -class SearchSubjectsTest extends \PHPUnit_Framework_TestCase +class SearchSubjectsTest extends TestCase { /** * @test diff --git a/test/Model/SubjectTest.php b/test/Model/SubjectTest.php index c10a2fff..d45b19ab 100644 --- a/test/Model/SubjectTest.php +++ b/test/Model/SubjectTest.php @@ -17,10 +17,10 @@ use eLife\ApiSdk\Model\Subject; use function GuzzleHttp\Promise\promise_for; use function GuzzleHttp\Promise\rejection_for; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use test\eLife\ApiSdk\Builder; -final class SubjectTest extends PHPUnit_Framework_TestCase +final class SubjectTest extends TestCase { /** * @test diff --git a/test/Serializer/Block/BoxNormalizerTest.php b/test/Serializer/Block/BoxNormalizerTest.php index dedeb438..bd07c323 100644 --- a/test/Serializer/Block/BoxNormalizerTest.php +++ b/test/Serializer/Block/BoxNormalizerTest.php @@ -10,11 +10,11 @@ use eLife\ApiSdk\Serializer\Block\BoxNormalizer; use eLife\ApiSdk\Serializer\Block\ParagraphNormalizer; use eLife\ApiSdk\Serializer\NormalizerAwareSerializer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -final class BoxNormalizerTest extends PHPUnit_Framework_TestCase +final class BoxNormalizerTest extends TestCase { /** @var BoxNormalizer */ private $normalizer; diff --git a/test/Serializer/Block/ButtonNormalizerTest.php b/test/Serializer/Block/ButtonNormalizerTest.php index a82d6f7b..9adfe14b 100644 --- a/test/Serializer/Block/ButtonNormalizerTest.php +++ b/test/Serializer/Block/ButtonNormalizerTest.php @@ -5,11 +5,11 @@ use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\Button; use eLife\ApiSdk\Serializer\Block\ButtonNormalizer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -final class ButtonNormalizerTest extends PHPUnit_Framework_TestCase +final class ButtonNormalizerTest extends TestCase { /** @var ButtonNormalizer */ private $normalizer; diff --git a/test/Serializer/Block/CodeNormalizerTest.php b/test/Serializer/Block/CodeNormalizerTest.php index 0e11f5cb..79f71a2b 100644 --- a/test/Serializer/Block/CodeNormalizerTest.php +++ b/test/Serializer/Block/CodeNormalizerTest.php @@ -5,11 +5,11 @@ use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\Code; use eLife\ApiSdk\Serializer\Block\CodeNormalizer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -final class CodeNormalizerTest extends PHPUnit_Framework_TestCase +final class CodeNormalizerTest extends TestCase { /** @var CodeNormalizer */ private $normalizer; diff --git a/test/Serializer/Block/ExcerptNormalizerTest.php b/test/Serializer/Block/ExcerptNormalizerTest.php index bf5c9605..55d182af 100644 --- a/test/Serializer/Block/ExcerptNormalizerTest.php +++ b/test/Serializer/Block/ExcerptNormalizerTest.php @@ -9,11 +9,11 @@ use eLife\ApiSdk\Serializer\Block\ExcerptNormalizer; use eLife\ApiSdk\Serializer\Block\ParagraphNormalizer; use eLife\ApiSdk\Serializer\NormalizerAwareSerializer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -final class ExcerptNormalizerTest extends PHPUnit_Framework_TestCase +final class ExcerptNormalizerTest extends TestCase { /** @var ExcerptNormalizer */ private $normalizer; diff --git a/test/Serializer/Block/ListingNormalizerTest.php b/test/Serializer/Block/ListingNormalizerTest.php index e6c3c7eb..3a21ac89 100644 --- a/test/Serializer/Block/ListingNormalizerTest.php +++ b/test/Serializer/Block/ListingNormalizerTest.php @@ -9,11 +9,11 @@ use eLife\ApiSdk\Serializer\Block\ListingNormalizer; use eLife\ApiSdk\Serializer\Block\ParagraphNormalizer; use eLife\ApiSdk\Serializer\NormalizerAwareSerializer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -final class ListingNormalizerTest extends PHPUnit_Framework_TestCase +final class ListingNormalizerTest extends TestCase { /** @var ListingNormalizer */ private $normalizer; diff --git a/test/Serializer/Block/MathMLNormalizerTest.php b/test/Serializer/Block/MathMLNormalizerTest.php index d3dbfcd9..d4333abb 100644 --- a/test/Serializer/Block/MathMLNormalizerTest.php +++ b/test/Serializer/Block/MathMLNormalizerTest.php @@ -5,11 +5,11 @@ use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\MathML; use eLife\ApiSdk\Serializer\Block\MathMLNormalizer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -final class MathMLNormalizerTest extends PHPUnit_Framework_TestCase +final class MathMLNormalizerTest extends TestCase { /** @var MathMLNormalizer */ private $normalizer; diff --git a/test/Serializer/Block/ParagraphNormalizerTest.php b/test/Serializer/Block/ParagraphNormalizerTest.php index 051244bb..cfa6223b 100644 --- a/test/Serializer/Block/ParagraphNormalizerTest.php +++ b/test/Serializer/Block/ParagraphNormalizerTest.php @@ -5,11 +5,11 @@ use eLife\ApiSdk\Model\Block; use eLife\ApiSdk\Model\Block\Paragraph; use eLife\ApiSdk\Serializer\Block\ParagraphNormalizer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -final class ParagraphNormalizerTest extends PHPUnit_Framework_TestCase +final class ParagraphNormalizerTest extends TestCase { /** @var ParagraphNormalizer */ private $normalizer; diff --git a/test/Serializer/Block/QuestionNormalizerTest.php b/test/Serializer/Block/QuestionNormalizerTest.php index 0fca97d3..84b00121 100644 --- a/test/Serializer/Block/QuestionNormalizerTest.php +++ b/test/Serializer/Block/QuestionNormalizerTest.php @@ -8,11 +8,11 @@ use eLife\ApiSdk\Serializer\Block\ParagraphNormalizer; use eLife\ApiSdk\Serializer\Block\QuestionNormalizer; use eLife\ApiSdk\Serializer\NormalizerAwareSerializer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -final class QuestionNormalizerTest extends PHPUnit_Framework_TestCase +final class QuestionNormalizerTest extends TestCase { /** @var QuestionNormalizer */ private $normalizer; diff --git a/test/Serializer/Block/QuoteNormalizerTest.php b/test/Serializer/Block/QuoteNormalizerTest.php index 655ffd91..232313b0 100644 --- a/test/Serializer/Block/QuoteNormalizerTest.php +++ b/test/Serializer/Block/QuoteNormalizerTest.php @@ -8,11 +8,11 @@ use eLife\ApiSdk\Serializer\Block\ParagraphNormalizer; use eLife\ApiSdk\Serializer\Block\QuoteNormalizer; use eLife\ApiSdk\Serializer\NormalizerAwareSerializer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -final class QuoteNormalizerTest extends PHPUnit_Framework_TestCase +final class QuoteNormalizerTest extends TestCase { /** @var QuoteNormalizer */ private $normalizer; diff --git a/test/Serializer/Block/SectionNormalizerTest.php b/test/Serializer/Block/SectionNormalizerTest.php index 460a020f..bb59e1e3 100644 --- a/test/Serializer/Block/SectionNormalizerTest.php +++ b/test/Serializer/Block/SectionNormalizerTest.php @@ -10,11 +10,11 @@ use eLife\ApiSdk\Serializer\Block\ParagraphNormalizer; use eLife\ApiSdk\Serializer\Block\SectionNormalizer; use eLife\ApiSdk\Serializer\NormalizerAwareSerializer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -final class SectionNormalizerTest extends PHPUnit_Framework_TestCase +final class SectionNormalizerTest extends TestCase { /** @var SectionNormalizer */ private $normalizer; diff --git a/test/Serializer/IdentityMapTest.php b/test/Serializer/IdentityMapTest.php index 3b371434..4c8dbe15 100644 --- a/test/Serializer/IdentityMapTest.php +++ b/test/Serializer/IdentityMapTest.php @@ -2,7 +2,9 @@ namespace eLife\ApiSdk\Serializer; -class IdentityMapTest extends \PHPUnit_Framework_TestCase +use PHPUnit\Framework\TestCase; + +class IdentityMapTest extends TestCase { public function testResetValuesAreNotConsidered() { diff --git a/test/Serializer/OnBehalfOfAuthorNormalizerTest.php b/test/Serializer/OnBehalfOfAuthorNormalizerTest.php index 5db9ac01..3495f05d 100644 --- a/test/Serializer/OnBehalfOfAuthorNormalizerTest.php +++ b/test/Serializer/OnBehalfOfAuthorNormalizerTest.php @@ -5,11 +5,11 @@ use eLife\ApiSdk\Model\AuthorEntry; use eLife\ApiSdk\Model\OnBehalfOfAuthor; use eLife\ApiSdk\Serializer\OnBehalfOfAuthorNormalizer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -final class OnBehalfOfAuthorNormalizerTest extends PHPUnit_Framework_TestCase +final class OnBehalfOfAuthorNormalizerTest extends TestCase { /** @var OnBehalfOfAuthorNormalizer */ private $normalizer; diff --git a/test/Serializer/PublicReviewNormalizerTest.php b/test/Serializer/PublicReviewNormalizerTest.php index 3a2b19ae..0475c73c 100644 --- a/test/Serializer/PublicReviewNormalizerTest.php +++ b/test/Serializer/PublicReviewNormalizerTest.php @@ -9,11 +9,11 @@ use eLife\ApiSdk\Serializer\Block\ParagraphNormalizer; use eLife\ApiSdk\Serializer\NormalizerAwareSerializer; use eLife\ApiSdk\Serializer\PublicReviewNormalizer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -final class PublicReviewNormalizerTest extends PHPUnit_Framework_TestCase +final class PublicReviewNormalizerTest extends TestCase { /** @var PublicReviewNormalizer */ private $normalizer; diff --git a/test/Serializer/Reference/ThesisReferenceNormalizerTest.php b/test/Serializer/Reference/ThesisReferenceNormalizerTest.php index 3f750180..ce86ae3e 100644 --- a/test/Serializer/Reference/ThesisReferenceNormalizerTest.php +++ b/test/Serializer/Reference/ThesisReferenceNormalizerTest.php @@ -11,11 +11,11 @@ use eLife\ApiSdk\Serializer\PersonDetailsNormalizer; use eLife\ApiSdk\Serializer\PlaceNormalizer; use eLife\ApiSdk\Serializer\Reference\ThesisReferenceNormalizer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; -final class ThesisReferenceNormalizerTest extends PHPUnit_Framework_TestCase +final class ThesisReferenceNormalizerTest extends TestCase { /** @var ThesisReferenceNormalizer */ private $normalizer; diff --git a/test/Serializer/ReviewerNormalizerTest.php b/test/Serializer/ReviewerNormalizerTest.php index a0f8020f..37fb4c59 100644 --- a/test/Serializer/ReviewerNormalizerTest.php +++ b/test/Serializer/ReviewerNormalizerTest.php @@ -9,12 +9,12 @@ use eLife\ApiSdk\Serializer\PersonDetailsNormalizer; use eLife\ApiSdk\Serializer\PlaceNormalizer; use eLife\ApiSdk\Serializer\ReviewerNormalizer; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; use Symfony\Component\Serializer\Normalizer\DenormalizerInterface; use Symfony\Component\Serializer\Normalizer\NormalizerInterface; use test\eLife\ApiSdk\Builder; -final class ReviewerNormalizerTest extends PHPUnit_Framework_TestCase +final class ReviewerNormalizerTest extends TestCase { /** @var ReviewerNormalizer */ private $normalizer; diff --git a/test/Serializer/SnippetDenormalizerTest.php b/test/Serializer/SnippetDenormalizerTest.php index 62da65ae..de1b0f95 100644 --- a/test/Serializer/SnippetDenormalizerTest.php +++ b/test/Serializer/SnippetDenormalizerTest.php @@ -5,9 +5,9 @@ use eLife\ApiSdk\Serializer\SnippetDenormalizer; use function GuzzleHttp\Promise\promise_for; use GuzzleHttp\Promise\PromiseInterface; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase; -final class SnippetDenormalizerTest extends PHPUnit_Framework_TestCase +final class SnippetDenormalizerTest extends TestCase { /** * @test diff --git a/test/TestCase.php b/test/TestCase.php index 7d389871..76778cb0 100644 --- a/test/TestCase.php +++ b/test/TestCase.php @@ -13,12 +13,12 @@ use eLife\ApiSdk\Model\ReviewedPreprint; use GuzzleHttp\Promise\PromiseInterface; use GuzzleHttp\Promise\RejectionException; -use PHPUnit_Framework_TestCase; +use PHPUnit\Framework\TestCase as PHPUnitTestCase; use ReflectionMethod; use RuntimeException; use Traversable; -abstract class TestCase extends PHPUnit_Framework_TestCase +abstract class TestCase extends PHPUnitTestCase { final protected function classNameProvider(string ...$classes) : Traversable { From aa6763e5e873c08c69183e309a7b6acfce073977 Mon Sep 17 00:00:00 2001 From: Scott Aubrey Date: Thu, 7 Nov 2024 16:15:58 +0000 Subject: [PATCH 2/2] update PHPUnit further --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6515ae47..67f9c628 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "mtdowling/jmespath.php": "^2.0", "phpspec/phpspec": "^5.1 || ^6.3 || ^7.5", "phpspec/prophecy": "^1.10", - "phpunit/phpunit": "^6.5", + "phpunit/phpunit": "^7.5", "psr/http-message": "^1.0", "squizlabs/php_codesniffer": "^3.5" },