Report abuse

setPlugins(array());
  }
}

class ProjectConfiguration2 extends sfProjectConfiguration
{
  public function setup()
  {
    $this->enablePlugins(array('sfPropelPlugin'));
  }
}

$projectConfig = new ProjectConfiguration1(getcwd());
try
{
  new myPropelGuardPluginConfiguration($projectConfig);
  $t->fail('configuration throws an exception if sfPropelPlugin is not enabled');
}
catch (Exception $e)
{
  $t->pass('configuration throws an exception if sfPropelPlugin is not enabled');
}

$projectConfig = new ProjectConfiguration2(getcwd());
try
{
  new myPropelGuardPluginConfiguration($projectConfig);
  $t->pass('configuration does not throw an exception if sfPropelPlugin is enabled');
}
catch (Exception $e)
{
  $t->fail('configuration does not throw an exception if sfPropelPlugin is enabled');
}