Skip to content

Commit

Permalink
Merge pull request #1 from acurrieclark/shift-26478
Browse files Browse the repository at this point in the history
PHPUnit 8 Shift
  • Loading branch information
acurrieclark authored Apr 17, 2020
2 parents e783107 + 53d733e commit e1e0e45
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 52 deletions.
88 changes: 44 additions & 44 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
{
"name": "redu/sns-push",
"type": "project",
"description": "API Wrapper for Amazon SNS PHP SDK",
"keywords": [
"amazon",
"aws",
"sns",
"api"
],
"homepage": "https://github.com/ReduGroup/sns-push",
"license": "MIT",
"autoload": {
"psr-4": {
"SNSPush\\": "src/",
"Tests\\": "tests"
}
},
"authors": [
{
"name": "Alex Currie-Clark",
"email": "alex@onsetsoftware.io",
"role": "Developer"
"name": "redu/sns-push",
"type": "project",
"description": "API Wrapper for Amazon SNS PHP SDK",
"keywords": [
"amazon",
"aws",
"sns",
"api"
],
"homepage": "https://github.com/ReduGroup/sns-push",
"license": "MIT",
"autoload": {
"psr-4": {
"SNSPush\\": "src/",
"Tests\\": "tests"
}
},
{
"name": "Michael Forcer",
"email": "tech@redu.co.uk",
"role": "Developer"
"authors": [
{
"name": "Alex Currie-Clark",
"email": "alex@onsetsoftware.io",
"role": "Developer"
},
{
"name": "Michael Forcer",
"email": "tech@redu.co.uk",
"role": "Developer"
},
{
"name": "Jonathon Henderson",
"email": "tech@redu.co.uk",
"role": "Developer"
}
],
"require": {
"php": ">=7.1",
"aws/aws-sdk-php": "^3.36",
"aws/aws-php-sns-message-validator": "^1.4",
"ext-ctype": "*",
"ext-mbstring": "*",
"ext-json": "*"
},
{
"name": "Jonathon Henderson",
"email": "tech@redu.co.uk",
"role": "Developer"
"require-dev": {
"phpunit/phpunit": "^8.0",
"mockery/mockery": "^1.0",
"doctrine/instantiator": "1.0.5"
}
],
"require": {
"php": ">=7.1",
"aws/aws-sdk-php": "^3.36",
"aws/aws-php-sns-message-validator": "^1.4",
"ext-ctype": "*",
"ext-mbstring": "*",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^6.4",
"mockery/mockery": "^1.0",
"doctrine/instantiator": "1.0.5"
}
}
4 changes: 2 additions & 2 deletions tests/deviceTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ class DeviceTest extends TestCase
*/
protected $sns;

public function setUp()
protected function setUp(): void
{
$config = Config::data();

$this->client = Mockery::mock(SnsClient::class);
$this->sns = new SNSPush($config, $this->client);
}

public function tearDown()
protected function tearDown(): void
{
Mockery::close();
}
Expand Down
4 changes: 2 additions & 2 deletions tests/exceptionTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ExceptionTests extends TestCase
*/
protected $sns;

public function setUp()
protected function setUp(): void
{
$config = [
'account_id' => '01234567890',
Expand All @@ -42,7 +42,7 @@ public function setUp()
$this->sns = new SNSPush($config, $this->client);
}

public function tearDown()
protected function tearDown(): void
{
Mockery::close();
}
Expand Down
4 changes: 2 additions & 2 deletions tests/messageTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
*/
class MessageTest extends TestCase
{
public function setUp()
protected function setUp(): void
{
}

public function tearDown()
protected function tearDown(): void
{
Mockery::close();
}
Expand Down
4 changes: 2 additions & 2 deletions tests/pushTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PushTest extends TestCase
*/
protected $sns;

public function setUp()
protected function setUp(): void
{
$config = [
'account_id' => '01234567890', // Required
Expand All @@ -43,7 +43,7 @@ public function setUp()
$this->sns = new SNSPush($config, $this->client);
}

public function tearDown()
protected function tearDown(): void
{
Mockery::close();
}
Expand Down

0 comments on commit e1e0e45

Please sign in to comment.