public function testApiOnCancel_ReturnsOnCancelHandler() { $callable = function () { }; $req = $this->createRequest('pid', null, null, $callable); $this->assertSame($callable, $req->onCancel()); }