function testDBLogger() { $this->dbl = $logger = new DBLogger(new PdoDBTable(array('name' => 'log', 'pdo' => $this->pdo)), null, Logger::DEVEL); $logger->reset(); $logger->devel('1'); $logger->debug('2'); $logger->info('3'); $logger->warn('4'); $logger->error('5'); $len = strlen($logger->get()); if ($len !== 161) { return "{$len} chars instead 161 chars"; } }