mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-27 19:50:21 +02:00
26 lines
465 B
PHP
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');
|
|
}
|
|
} |