コード例 #1
0
ファイル: TimeRangeTest.php プロジェクト: kurtkk/seminars
 protected function setUp()
 {
     $this->testingFramework = new Tx_Oelib_TestingFramework('tx_seminars');
     $this->configuration = new Tx_Oelib_Configuration();
     $this->configuration->setAsString('timeFormat', self::TIME_FORMAT);
     Tx_Oelib_ConfigurationRegistry::getInstance()->set('plugin.tx_seminars', $this->configuration);
     $this->translator = Tx_Oelib_TranslatorRegistry::getInstance()->get('seminars');
     $this->translatedHours = ' ' . $this->translator->translate('label_hours');
     $this->subject = new tx_seminars_ViewHelper_TimeRange();
 }
コード例 #2
0
ファイル: TimeRange.php プロジェクト: Konafets/seminars
 /**
  * The constructor.
  */
 public function __construct()
 {
     $this->configuration = Tx_Oelib_ConfigurationRegistry::getInstance()->get('plugin.tx_seminars');
     $this->translator = Tx_Oelib_TranslatorRegistry::getInstance()->get('seminars');
 }
コード例 #3
0
 /**
  * @test
  */
 public function setLanguageKeyForEmptyStringGivenThrowsException()
 {
     $this->setExpectedException('InvalidArgumentException', 'The given language key must not be empty.');
     Tx_Oelib_TranslatorRegistry::getInstance()->setLanguageKey('');
 }
コード例 #4
0
 /**
  * the constructor
  */
 public function __construct()
 {
     $this->translator = Tx_Oelib_TranslatorRegistry::getInstance()->get('seminars');
 }