public function testBasicData()
{
$debug = new DebugStack();
$data = new DatabaseDataCollector($debug);
$debug->startQuery("Robert'); DROP TABLE students;");
$debug->stopQuery();
$app = $this->getApp();
$request = Request::create('/', 'GET');
$response = $app->handle($request);
$data->collect($request, $response);
$this->assertEquals('db', $data->getName());
$this->assertEquals(1, $data->getQueryCount());
$this->assertNotEmpty($data->getTime());
$this->assertNotEmpty($data->getQueries());
}