/** * testClose * * @return void */ public function testClose() { // Add new db config ConnectionManager::create('test_csv', $this->config); $model = ClassRegistry::init('BlogTest'); $this->Csv->close(); $this->assertFalse($this->Csv->connected); $this->assertEmpty($this->Csv->handle); }