1<?php
2
3namespace Sabre\HTTP;
4
5/**
6 * HTTP Response Mock object
7 *
8 * This class exists to make the transition to sabre/http easier.
9 *
10 * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
11 * @author Evert Pot (http://evertpot.com/)
12 * @license http://sabre.io/license/ Modified BSD License
13 */
14class SapiMock extends Sapi {
15
16    static $sent = 0;
17
18    /**
19     * Overriding this so nothing is ever echo'd.
20     *
21     * @return void
22     */
23    static function sendResponse(ResponseInterface $response) {
24
25        self::$sent++;
26
27    }
28
29}
30