Skip to content

Commit

Permalink
code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
desperado committed Jan 4, 2020
1 parent ebe2d02 commit 1936498
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 15 deletions.
14 changes: 0 additions & 14 deletions infection.json

This file was deleted.

2 changes: 1 addition & 1 deletion tests/Application/Bootstrap/BootstrapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function boot(ContainerBuilder $containerBuilder): void
$bootstrap->addExtensions(new ServiceBusExtension());
$bootstrap->addCompilerPasses(new TaggedMessageHandlersCompilerPass());
$bootstrap->importParameters(['qwerty' => 'root']);
$bootstrap->enableAutoImportMessageHandlers([__DIR__]);
$bootstrap->enableAutoImportMessageHandlers([__DIR__ . '/services']);
$bootstrap->applyModules($module);

$container = $bootstrap->boot();
Expand Down
20 changes: 20 additions & 0 deletions tests/Application/Bootstrap/services/TestBootstrapCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/**
* PHP Service Bus (publish-subscribe pattern implementation).
*
* @author Maksim Masiukevich <dev@async-php.com>
* @license MIT
* @license https://opensource.org/licenses/MIT
*/

declare(strict_types = 1);

namespace ServiceBus\Tests\Application\Bootstrap\services;

/**
*
*/
final class TestBootstrapCommand
{
}
37 changes: 37 additions & 0 deletions tests/Application/Bootstrap/services/TestBootstrapService.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

/**
* PHP Service Bus (publish-subscribe pattern implementation).
*
* @author Maksim Masiukevich <dev@async-php.com>
* @license MIT
* @license https://opensource.org/licenses/MIT
*/

declare(strict_types = 1);

namespace ServiceBus\Tests\Application\Bootstrap\services;

use ServiceBus\Common\Context\ServiceBusContext;
use ServiceBus\Services\Annotations\CommandHandler;
use ServiceBus\Services\Annotations\EventListener;

/**
*
*/
final class TestBootstrapService
{
/**
* @CommandHandler()
*/
public function do(TestBootstrapCommand $command, ServiceBusContext $context): void
{
}

/**
* @EventListener()
*/
public function when(TestBootstrapEvent $event, ServiceBusContext $context): void
{
}
}

0 comments on commit 1936498

Please sign in to comment.