public function testClosureCallbackShouldBeInvokedByCall() { $handler = new SignalHandler(null, function () { return 'foo'; }); $this->assertEquals('foo', $handler->call()); }