/**
  * Returns an instance of this class as singleton
  *
  * @return Tx_Yag_Tests_DefaultTsConfig
  */
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 /**
  * Sets up fixture for this testcase
  *
  */
 public function setUp()
 {
     $settings = Tx_Yag_Tests_DefaultTsConfig::getInstance()->tsConfigArray;
     $this->fixture = new Tx_Yag_Domain_Configuration_ConfigurationBuilder($settings['plugin']['tx_yag']['settings'], 'test', 'test');
 }
 /**
  * @test
  */
 public function constructorReturnsConfiguration()
 {
     $configurationBuilder = Tx_Yag_Tests_DefaultTsConfig::getInstance()->getDefaultConfigurationBuilder();
     $processorConfiguration = new Tx_Yag_Domain_Configuration_ImageProcessing_ImageProcessorConfiguration($configurationBuilder, $configurationBuilder->getSettingsForConfigObject('imageProcessor'));
     $this->assertTrue(is_a($processorConfiguration, 'Tx_Yag_Domain_Configuration_ImageProcessing_ImageProcessorConfiguration'));
 }
 /**
  * Sets up testcase
  */
 public function setUp()
 {
     $configurationBuilder = Tx_Yag_Tests_DefaultTsConfig::getInstance()->getDefaultConfigurationBuilder();
     $this->fixture = new Tx_Yag_Domain_Import_FileCrawler($configurationBuilder->buildImporterConfiguration());
 }