public function testgetcomponentメソッドにlogを指定した場合loggerを応答する() { $options = array('env' => 'testing', 'resources' => array('Config', 'Log')); $path = GENE_APP_PATH; $app = Gene::app($path, $options); $this->assertTrue(Gene::getComponent('log') instanceof Gene_Log); }
public function testDbadpterを設定できる() { $adapter = Gene::getComponent('adapter')->getDbAdapter('slave'); $instance = Gene::load('Gene_Service_Model'); $instance->setDbAdapter($adapter); $this->assertSame($instance->getDbAdapter(), $adapter); }