Page MenuHomePhabricator

SapiMock.php
No OneTemporary

SapiMock.php

<?php
namespace Sabre\HTTP;
/**
* HTTP Response Mock object
*
* This class exists to make the transition to sabre/http easier.
*
* @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
class SapiMock extends Sapi {
static $sent = 0;
/**
* Overriding this so nothing is ever echo'd.
*
* @return void
*/
static function sendResponse(ResponseInterface $response) {
self::$sent++;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Dec 22, 8:02 AM (3 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914601
Default Alt Text
SapiMock.php (557 B)

Event Timeline