-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from ruudk/auto-register-all-public-methods
AutoRegister all public methods
- Loading branch information
Showing
14 changed files
with
189 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ phpunit.xml | |
composer.lock | ||
.couscous/ | ||
/build/ | ||
/coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\Auto; | ||
|
||
final class AutoCommand1 | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\Auto; | ||
|
||
final class AutoCommand2 | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tests/Functional/SmokeTest/Auto/AutoCommandHandlerUsingPublicMethod.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\Auto; | ||
|
||
final class AutoCommandHandlerUsingPublicMethod | ||
{ | ||
public $handled; | ||
|
||
public function someHandleMethod(AutoCommand2 $command) | ||
{ | ||
$this->handled = $command; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\Auto; | ||
|
||
final class AutoEvent3 | ||
{ | ||
} |
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
tests/Functional/SmokeTest/Auto/AutoEventSubscriberUsingInvoke.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\Auto; | ||
|
||
final class AutoEventSubscriberUsingInvoke | ||
{ | ||
public $handled; | ||
|
||
public function __invoke(AutoEvent1 $event) | ||
{ | ||
$this->handled = $event; | ||
} | ||
|
||
public function randomPublicMethod($value) | ||
{ | ||
|
||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
tests/Functional/SmokeTest/Auto/AutoEventSubscriberUsingPublicMethod.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\Auto; | ||
|
||
final class AutoEventSubscriberUsingPublicMethod | ||
{ | ||
public $handled = []; | ||
|
||
public function __construct() | ||
{ | ||
|
||
} | ||
|
||
public function __destruct() | ||
{ | ||
|
||
} | ||
|
||
public function someEventHandler(AutoEvent2 $event) | ||
{ | ||
$this->handled[] = $event; | ||
} | ||
|
||
public function someOtherEventHandler(AutoEvent3 $event) | ||
{ | ||
$this->handled[] = $event; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters