Skip to content

Commit

Permalink
Fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
ottaviano committed Nov 3, 2018
1 parent a36c4ba commit 1c8c7f4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
14 changes: 10 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "ottaviano/messenger-logger-sender",
"description": "LoggerSender for Symfony Messenger component",
"license": "MIT",
"authors": [
{
Expand All @@ -12,13 +13,18 @@
"Ottaviano\\Messenger\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\Ottaviano\\Messenger\\": "tests"
}
},
"require": {
"php": "^7.1.3",
"psr/log": "^1.0",
"symfony/messenger": "^4.2"
"symfony/messenger": "^4.2.0-dev"
},
"require-dev": {
"phpunit/phpunit": "^7.4"
},
"minimum-stability": "beta"
"phpunit/phpunit": "^7.4",
"symfony/var-dumper": "^4.1"
}
}
6 changes: 4 additions & 2 deletions tests/LoggerSenderTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

namespace Tests\Ottaviano\Messenger;

use Ottaviano\Messenger\LoggerSender;
use Ottaviano\Messenger\Stamp\LogLevelStamp;
use PHPUnit\Framework\MockObject\MockObject;
Expand Down Expand Up @@ -30,7 +32,7 @@ protected function setUp()
*/
public function testSendWithMessageNotStringify()
{
$this->sender->send($this->createEnvelope(new stdClass()));
$this->sender->send($this->createEnvelope(new \stdClass()));
}

public function testSendCallSerializerEncodeMethod()
Expand Down Expand Up @@ -67,7 +69,7 @@ public function testSendUseDefaultInfoLogLevel()
$this->loggerMock
->expects($this->once())
->method('log')
->with(LogLevel::INFO)
->with(LogLevel::INFO, $this->isInstanceOf(Message::class))
;

$this->sender->send($this->createEnvelope(new Message()));
Expand Down

0 comments on commit 1c8c7f4

Please sign in to comment.