. */ /** * Provides a test implementation of a PENS Client. * * @author Guillaume Viguier-Just * @licence http://www.gnu.org/licenses/gpl.txt */ require_once __DIR__ . '/pens.php'; class MyRequestHandler extends PENSRequestHandler { public function processRequest($request, $response) { // Do the processing of the alert or the receipt here } } $handler = new MyRequestHandler(); $client = PENSClient::singleton(); $client->setRequestHandler($handler); $client->receiveRequest();