/** * @expectedException \RuntimeException */ public function testGetDefaultConnectionNotExist() { $mandango = new Mandango($this->metadataFactory, $this->cache); $mandango->setConnection('default', $this->connection); $mandango->getDefaultConnection(); }