public function testApiHandle_CallsHandler()
{
$name = 'name';
$protocol = $this->createProtocol();
$flags = 1;
$success = function () {
};
$failure = function () {
};
$abort = function () {
};
$timeout = 2.0;
$handler = $this->createCallableMock();
$handler->expects($this->once())->method('__invoke')->with($name, $protocol, $flags, $success, $failure, $abort, $timeout);
$propagate = false;
$handler = $this->createRouterHandler(function () {
}, $handler, $propagate);
$result = $handler->handle($name, $protocol, $flags, $success, $failure, $abort, $timeout);
$this->assertSame($propagate, $result);
}