Beispiel #1
0
 public function __construct()
 {
     parent::__construct();
     $this->setName("Translation");
     $this->addTest(ezcTranslationTest::suite());
     $this->addTest(ezcTranslationTsBackendTest::suite());
     $this->addTest(ezcTranslationManagerTest::suite());
     $this->addTest(ezcTranslationFilterBorkifyTest::suite());
     $this->addTest(ezcTranslationFilterLeetifyTest::suite());
 }
 public function testCompileStringWithMissingNumericalParameters()
 {
     $obj = new ezcTranslation(ezcTranslationTest::setUpTestArray());
     try {
         $string = $obj->compileTranslation('A %1 is not a %2', array(1 => 'koe'));
         self::fail('Expected exception "Parameter missing" was not thrown');
     } catch (ezcTranslationParameterMissingException $e) {
         self::assertEquals("The parameter '%2' does not exist.", $e->getMessage());
     }
 }