Skip to content

Commit

Permalink
Merge pull request #12 from geekcom/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
geekcom authored Dec 9, 2019
2 parents be3bec5 + 007b3e2 commit 25eb56f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4-rc
FROM php:7.4

LABEL maintainer="geekcom"

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'
services:
app:
build: .docker
container_name: laika
container_name: felicio
volumes:
- .:/var/www/app
tty: true
3 changes: 2 additions & 1 deletion src/Felicio.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Felicio;

use Aws\Sqs\SqsClient;
use Felicio\Contracts\FelicioContract;
use Aws\Sdk;
use Aws\Exception\AwsException;
Expand All @@ -13,7 +14,7 @@

final class Felicio implements FelicioContract
{
protected $felicioClient;
protected SqsClient $felicioClient;

public function __construct($felicioDotFile)
{
Expand Down
8 changes: 4 additions & 4 deletions tests/FelicioTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

final class FelicioTest extends TestCase
{
private $instance;
private Felicio $instance;

public function setUp(): void
{
Expand Down Expand Up @@ -85,8 +85,8 @@ public function deleteMessageWithoutParameters(): void
$this->expectException(ArgumentCountError::class);

$params = [
'QueueUrl' => '', //required
'ReceiptHandle' => '', //required
'QueueUrl' => '',
'ReceiptHandle' => '',
];

$this->instance->deleteMessage($params);
Expand All @@ -97,6 +97,6 @@ public function ifExistsMessage(): void
{
$queueUrl = ''; //required

$this->assertGreaterThan(1, $this->instance->countMessages($queueUrl));
$this->assertGreaterThan(0, $this->instance->countMessages($queueUrl));
}
}

0 comments on commit 25eb56f

Please sign in to comment.