Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Commit

Permalink
Using correct assertion instead of a callable (does not work with hhvm)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Dec 22, 2013
1 parent 579555b commit de8d19d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ public function testCreateService()
$listenerMock
->expects($this->once())
->method('attach')
->with($this->callback(function ($eventManager) {
return $eventManager instanceof EventManagerInterface;
}));
->with($this->isInstanceOf('Zend\EventManager\EventManagerInterface'));
$serviceLocator
->expects($this->any())
->method('get')
Expand Down

0 comments on commit de8d19d

Please sign in to comment.