/** * @expectedException \Drest\DrestException */ public function testRunningInDebugMode() { $config = new Configuration(); $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache()); $config->setDebugMode(true); $config->ensureProductionSettings(); }