Skip to content

Commit 82d172e

Browse files
authored
Compatible with phpunit 8. (#256)
* Update phpunit/phpunit requirement from ^7.4 to ^7.4 || ^8.0
1 parent fae5f78 commit 82d172e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+59
-59
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"vonage/nexmo-bridge": "^0.1.0"
4040
},
4141
"require-dev": {
42-
"phpunit/phpunit": "^7.4",
42+
"phpunit/phpunit": "^7.4 || ^8.0",
4343
"php-http/mock-client": "^1.4",
4444
"estahn/phpunit-json-assertions": "^3.0.0",
4545
"squizlabs/php_codesniffer": "^3.1",

test/Account/BalanceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class BalanceTest extends TestCase
1818
*/
1919
protected $balance;
2020

21-
public function setUp()
21+
public function setUp(): void
2222
{
2323
$this->balance = new Balance('12.99', false);
2424
}

test/Account/ClientFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ClientFactoryTest extends TestCase
2121
*/
2222
protected $vonageClient;
2323

24-
public function setUp()
24+
public function setUp(): void
2525
{
2626
$this->vonageClient = $this->prophesize('Vonage\Client');
2727
$this->vonageClient->getRestUrl()->willReturn('https://rest.nexmo.com');

test/Account/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ClientTest extends TestCase
4343
*/
4444
protected $api;
4545

46-
public function setUp()
46+
public function setUp(): void
4747
{
4848
$this->vonageClient = $this->prophesize('Vonage\Client');
4949
$this->vonageClient->getRestUrl()->willReturn('https://rest.nexmo.com');

test/Account/ConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class ConfigTest extends TestCase
1515
{
16-
public function setUp()
16+
public function setUp(): void
1717
{
1818
$this->config = new Config(
1919
"https://example.com/webhooks/inbound-sms",

test/Account/PrefixPriceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class PrefixPriceTest extends TestCase
1616
{
17-
public function setUp()
17+
public function setUp(): void
1818
{
1919
}
2020

test/Account/SecretCollectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class SecretCollectionTest extends TestCase
1616
{
17-
public function setUp()
17+
public function setUp(): void
1818
{
1919
$this->secrets = [[
2020
'id' => 'ad6dc56f-07b5-46e1-a527-85530e625800',

test/Account/SecretTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class SecretTest extends TestCase
1616
{
17-
public function setUp()
17+
public function setUp(): void
1818
{
1919
$this->secret = @Secret::fromApi([
2020
'id' => 'ad6dc56f-07b5-46e1-a527-85530e625800',

test/Account/SmsPriceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class SmsPriceTest extends TestCase
1616
{
17-
public function setUp()
17+
public function setUp(): void
1818
{
1919
}
2020

test/Application/ApplicationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ApplicationTest extends TestCase
2222
*/
2323
protected $app;
2424

25-
public function setUp()
25+
public function setUp(): void
2626
{
2727
$this->app = new Application();
2828
$this->app->setName('test');
@@ -150,4 +150,4 @@ protected function getResponse($type = 'success')
150150
{
151151
return new Response(fopen(__DIR__ . '/responses/' . $type . '.json', 'r'));
152152
}
153-
}
153+
}

0 commit comments

Comments
 (0)