Skip to content

Commit

Permalink
apply php cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Feb 8, 2017
1 parent 287c5f8 commit d4e89d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/Plugin/UpcastingPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
use Prooph\EventStore\Upcasting\NoOpEventUpcaster;
use Prooph\EventStore\Upcasting\SingleEventUpcaster;
use ProophTest\EventStore\ActionEventEmitterEventStoreTestCase;
use ProophTest\EventStore\Mock\EventLoggerPlugin;
use ProophTest\EventStore\Mock\UserCreated;
use ProophTest\EventStore\Mock\UsernameChanged;
use Zend\ServiceManager\ServiceManager;

class UpcastingPluginTest extends ActionEventEmitterEventStoreTestCase
{
Expand All @@ -32,7 +30,7 @@ class UpcastingPluginTest extends ActionEventEmitterEventStoreTestCase
*/
public function it_attaches_to_event_store(): void
{
$upcaster = new class extends SingleEventUpcaster {
$upcaster = new class() extends SingleEventUpcaster {
protected function canUpcast(Message $message): bool
{
return true;
Expand All @@ -42,7 +40,6 @@ protected function doUpcast(Message $message): array
{
return [$message->withAddedMetadata('key', 'value')];
}

};

$plugin = new UpcastingPlugin($upcaster);
Expand Down

0 comments on commit d4e89d6

Please sign in to comment.