MockMessageCollectionForExport.php
Go to the documentation of this file.00001 <?php
00013 class MockMessageCollectionForExport extends MessageCollection {
00014 public function __construct() {
00015 $msg = new FatMessage( 'translatedmsg', 'definition' );
00016 $msg->setTranslation( 'translation' );
00017 $this->messages['translatedmsg'] = $msg;
00018
00019 $msg = new FatMessage( 'fuzzymsg', 'definition' );
00020 $msg->addTag( 'fuzzy' );
00021 $msg->setTranslation( '!!FUZZY!!translation' );
00022 $this->messages['fuzzymsg'] = $msg;
00023
00024 $msg = new FatMessage( 'untranslatedmsg', 'definition' );
00025 $this->messages['untranslatedmsg'] = $msg;
00026
00027 $this->tags = array(
00028 'fuzzy' => array( 'fuzzymsg' ),
00029 );
00030
00031 $this->keys = array_flip( array_keys( $this->messages ) );
00032 }
00033
00034 public function getAuthors() {
00035 return array( 'Nike the bunny' );
00036 }
00037
00038 public function getLanguage() {
00039 return 'fi';
00040 }
00041 }