1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-27 19:50:21 +02:00
Files
php-debugbar/tests/DebugBar/Tests/ServerHandler/MockHandler.php
2014-03-23 14:12:17 -04:00

26 lines
465 B
PHP

<?php
namespace DebugBar\Tests\ServerHandler;
use DebugBar\ServerHandler\ServerHandlerInterface;
class MockHandler implements ServerHandlerInterface
{
public $calls = array();
public function getName()
{
return 'mock';
}
public function getCommandNames()
{
return array('ping');
}
public function ping($request, $debugbar)
{
$this->calls[] = $request;
return array('ping' => 'pong');
}
}