/** * Test method. * * @expectedException \UnexpectedValueException * * @return void */ public function testGetsomethingInvalid() { G11n::get('somethingInvalid'); }
/** * Draws untranslated strings to paste in a language file. * * @return void * * @deprecated */ private static function drawDesignTable() { $items = G11n::get('processedItems'); $file = ''; $count = 0; echo '<h3>Design</h3>'; echo '<pre style="border: 1px dashed gray; padding: 0.5em; font-size: 12px;">'; foreach ($items as $string => $item) { if ($item->status != '-') { continue; } $f = self::JReplace($item->file); if ($f != $file) { $file = $f; echo '# From file: <strong>' . $f . '</strong>'; } echo "\n"; echo htmlspecialchars($string) . "\n"; echo htmlspecialchars($string) . "\n"; $count++; } echo '</pre>'; echo $count ? sprintf('<h3>Found <b>%d</b> untranslated items</h3>', $count) : '<h3 style="color: green;">Everything\'s translated <tt>=:)</tt></h3>'; }