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