예제 #1
0
 /**
  * エージェント用の設定が有効かどうかを判定
  *
  * @return bool
  */
 public function testIsEnabled()
 {
     $result = $this->agent->isEnabled();
     $this->assertTrue($result, 'エージェント用の設定が有効か正しく判定できません');
     $agent_hoge = new BcAgent('hoge', array('agents' => array()));
     $result = $agent_hoge->isEnabled();
     $this->assertFalse($result, 'エージェント用の設定が有効か正しく判定できません');
 }