Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tests/Tests/CurrencyPairTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion tests/Tests/Service/ApiLayer/ExchangeRatesDataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/';

Expand Down
2 changes: 1 addition & 1 deletion tests/Tests/Service/ExchangeRatesApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/';

Expand Down
2 changes: 1 addition & 1 deletion tests/Tests/Service/NationalBankOfRomaniaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down