use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Component\Stopwatch\StopwatchEvent;
/**
* @group time-sensitive
*/
class TimeDataCollectorTest extends TestCase
{ public function testCollect() { $c =
new TimeDataCollector();
$request =
new Request();
$request->server->
set('REQUEST_TIME', 1
);
$c->
collect($request,
new Response());
$this->
assertEquals(0,
$c->
getStartTime());
$request->server->
set('REQUEST_TIME_FLOAT', 2
);
$c->
collect($request,
new Response());