Skip to content

Commit

Permalink
update version constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
iwyg committed Apr 12, 2016
1 parent 3534680 commit fc145d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"php":">=5.6"
},
"require-dev": {
"phpunit/phpunit": "5.2.*@dev",
"phpunit/phpunit": "^5.2",
"container-interop/container-interop": "~1.1.0"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions tests/EventDispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function itShouldAllowInvokableHandlers()
{
$invoked = false;

$handler = $this->getMock('InvokableHandler', ['__invoke']);
$handler = $this->getMockBuilder('InvokableHandler')->setMethods(['__invoke'])->getMock();
$handler->method('__invoke')->willReturnCallback(function () use (&$invoked) {
$invoked = true;
});
Expand Down Expand Up @@ -174,7 +174,7 @@ public function itShouldInvokeHandlerMethod()
{
$called = false;

$handler = $this->getMock('Lucid\Signal\HandlerInterface');
$handler = $this->getMockBuilder('Lucid\Signal\HandlerInterface')->getMock();
$handler->method('handleEvent')->will($this->returnCallback(function () use (&$called) {
$called = true;
}));
Expand Down

0 comments on commit fc145d0

Please sign in to comment.