Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
don
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
LQDN Adminsys
don
Commits
41e00a69
Commit
41e00a69
authored
Oct 13, 2018
by
Okhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the generic object test
parent
ddaa1b20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/LQDN/CommandHandler.php
src/LQDN/CommandHandler.php
+5
-1
tests/functional/Handler/CommandHandlerTest.php
tests/functional/Handler/CommandHandlerTest.php
+1
-1
No files found.
src/LQDN/CommandHandler.php
View file @
41e00a69
...
...
@@ -19,7 +19,11 @@ class CommandHandler
*/
public
function
handle
(
$command
)
{
$method
=
$this
->
getHandleMethod
(
$command
);
try
{
$method
=
$this
->
getHandleMethod
(
$command
);
}
catch
(
Exception
$e
)
{
throw
new
CommandNotHandledException
();
}
foreach
(
$this
->
handlers
as
$handler
)
{
if
(
method_exists
(
$handler
,
$method
))
{
...
...
tests/functional/Handler/CommandHandlerTest.php
View file @
41e00a69
...
...
@@ -16,7 +16,7 @@ class CommandHandlerTest extends Functionaltest
public
function
testCommandNotHandledException
()
{
$this
->
setExpectedException
(
'LQDN\Exception\CommandNotHandledException'
);
$this
->
container
[
'command_handler'
]
->
handle
(
new
Object
()
);
$this
->
container
[
'command_handler'
]
->
handle
(
new
class
{}
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment