diff --git a/composer.json b/composer.json index f549972..cd00411 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ "php-http/message-factory": "^1.1" }, "require-dev": { - "phpunit/phpunit": "^7 || ^8 || ^9.4", + "phpunit/phpunit": "^7 || ^8 || ^9.4 || ^10.5", "php-http/message": "^1.7", "php-http/mock-client": "^1.0", "nyholm/psr7": "^1.0" diff --git a/tests/Tests/CurrencyPairTest.php b/tests/Tests/CurrencyPairTest.php index 58e5c26..95ee8c1 100644 --- a/tests/Tests/CurrencyPairTest.php +++ b/tests/Tests/CurrencyPairTest.php @@ -29,7 +29,7 @@ public function it_creates_a_pair_from_a_valid_string($string, $baseCurrency, $q $this->assertEquals($quoteCurrency, $pair->getQuoteCurrency()); } - public function validStringProvider() + public static function validStringProvider() { return [ ['EUR/USD', 'EUR', 'USD'], @@ -49,7 +49,7 @@ public function it_throws_an_exception_when_creating_from_an_invalid_string($str CurrencyPair::createFromString($string); } - public function invalidStringProvider() + public static function invalidStringProvider() { return [ ['EUR'], ['EUR/'], ['EU/US'], ['EUR/US'], ['US/EUR'], ['00'], ['00/'], ['007/00'], diff --git a/tests/Tests/Service/ApiLayer/ExchangeRatesDataTest.php b/tests/Tests/Service/ApiLayer/ExchangeRatesDataTest.php index f0f6030..4501371 100644 --- a/tests/Tests/Service/ApiLayer/ExchangeRatesDataTest.php +++ b/tests/Tests/Service/ApiLayer/ExchangeRatesDataTest.php @@ -82,7 +82,7 @@ public function it_throws_An_unsupported_currency_pair_exception( $service->getExchangeRate($query); } - public function unsupportedCurrencyPairResponsesProvider(): array + public static function unsupportedCurrencyPairResponsesProvider(): array { $dir = __DIR__.'/../../../Fixtures/Service/ApiLayer/ExchangeRatesData/'; diff --git a/tests/Tests/Service/ExchangeRatesApiTest.php b/tests/Tests/Service/ExchangeRatesApiTest.php index 83fd0a1..b81d03a 100644 --- a/tests/Tests/Service/ExchangeRatesApiTest.php +++ b/tests/Tests/Service/ExchangeRatesApiTest.php @@ -91,7 +91,7 @@ public function it_throws_An_unsupported_currency_pair_exception( $service->getExchangeRate($query); } - public function unsupportedCurrencyPairResponsesProvider(): array + public static function unsupportedCurrencyPairResponsesProvider(): array { $dir = __DIR__.'/../../Fixtures/Service/ExchangeRatesApi/'; diff --git a/tests/Tests/Service/NationalBankOfRomaniaTest.php b/tests/Tests/Service/NationalBankOfRomaniaTest.php index 31a1a24..8abb1db 100644 --- a/tests/Tests/Service/NationalBankOfRomaniaTest.php +++ b/tests/Tests/Service/NationalBankOfRomaniaTest.php @@ -156,7 +156,7 @@ public function it_has_a_name(): void $this->assertSame('national_bank_of_romania', $service->getName()); } - public function getSupportedCurrencies(): array + public static function getSupportedCurrencies(): array { return [ ['AED'],