public function testWrongTable() { $this->setExpectedException('Doctrine\\DBAL\\ConnectionException'); $this->dLayer->setTable('foo'); }