Skip to content

Commit 25eb56f

Browse files
authored
Merge pull request #12 from geekcom/develop
Develop
2 parents be3bec5 + 007b3e2 commit 25eb56f

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.4-rc
1+
FROM php:7.4
22

33
LABEL maintainer="geekcom"
44

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3'
22
services:
33
app:
44
build: .docker
5-
container_name: laika
5+
container_name: felicio
66
volumes:
77
- .:/var/www/app
88
tty: true

src/Felicio.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Felicio;
66

7+
use Aws\Sqs\SqsClient;
78
use Felicio\Contracts\FelicioContract;
89
use Aws\Sdk;
910
use Aws\Exception\AwsException;
@@ -13,7 +14,7 @@
1314

1415
final class Felicio implements FelicioContract
1516
{
16-
protected $felicioClient;
17+
protected SqsClient $felicioClient;
1718

1819
public function __construct($felicioDotFile)
1920
{

tests/FelicioTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
final class FelicioTest extends TestCase
1212
{
13-
private $instance;
13+
private Felicio $instance;
1414

1515
public function setUp(): void
1616
{
@@ -85,8 +85,8 @@ public function deleteMessageWithoutParameters(): void
8585
$this->expectException(ArgumentCountError::class);
8686

8787
$params = [
88-
'QueueUrl' => '', //required
89-
'ReceiptHandle' => '', //required
88+
'QueueUrl' => '',
89+
'ReceiptHandle' => '',
9090
];
9191

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

100-
$this->assertGreaterThan(1, $this->instance->countMessages($queueUrl));
100+
$this->assertGreaterThan(0, $this->instance->countMessages($queueUrl));
101101
}
102102
}

0 commit comments

Comments
 (0)