function setUp()
 {
     $this->noop = new NOOP_Translations();
     $this->entry = new Translation_Entry(array('singular' => 'baba'));
     $this->plural_entry = new Translation_Entry(array('singular' => 'dyado', 'plural' => 'dyados', 'translations' => array('dyadox', 'dyadoy')));
     parent::setUp();
 }
 function setUp()
 {
     parent::setUp();
     $this->sub_dir = '/glotpress/';
     $this->url = user_trailingslashit('http://example.org' . $this->sub_dir);
     $this->base_path_emtpy_string = '';
     $this->base_path_single_slash = '/';
 }
 function setUp()
 {
     parent::setUp();
     $this->route = new $this->route_class();
     $this->route->fake_request = true;
     $this->route->errors = array();
     $this->route->notices = array();
 }
 public function setUp()
 {
     parent::setUp();
     $this->translation_file = GP_DIR_TESTDATA . '/translation.po';
     $this->originals_file = GP_DIR_TESTDATA . '/originals.po';
     $this->format = new GP_Format_PO();
     $this->entries = array(array('normal_string', 'Normal String', 'Just A Normal String', ''), array('with_a_quote', 'I\'m with a quote', 'I\'m with a quote', ''), array('with_newlines', "new\nlines", "I\nhave\nnew\nlines", ''), array('with_doublequotes', 'double "quotes"', 'I have double "quotes"', ''), array('with_utf8', 'питка', 'баба ми омеси питка', ''), array('with_lt', 'you < me', 'ти < аз', ''), array('with_gt', 'me > you', "аз > ти", ''), array('with_amps', 'me & you are not &amp;', 'аз & ти не сме &amp;', ''), array('with_comment', 'baba', 'баба', 'Me, myself & Irene'));
 }
 function setUp()
 {
     parent::setUp();
     $this->w = new GP_Builtin_Translation_Warnings();
     $this->l = $this->factory->locale->create();
     $this->longer_than_20 = 'The little boy hid behind the counter and then came the wizard of all green wizards!';
     $this->shorter_than_5 = 'Boom';
 }
 function setUp()
 {
     parent::setUp();
     $this->is_baba = create_function('$o, $t, $l', 'return $t == "баба"? true : "error";');
     $this->is_equal = create_function('$o, $t, $l', 'return $t == $o? true : "error";');
     $this->w = new GP_Translation_Warnings();
     $this->with_equal = new GP_Translation_Warnings();
     $this->with_equal->add('is_equal', $this->is_equal);
     $this->standard_plural_locale = $this->factory->locale->create();
 }
    function setUp()
    {
        parent::setUp();
        // not so random wordpress.pot string -- multiple lines
        $this->mail = "Your new WordPress blog has been successfully set up at:\n\n%1\$s\n\nYou can log in to the administrator account with the following information:\n\nUsername: %2\$s\nPassword: %3\$s\n\nWe hope you enjoy your new blog. Thanks!\n\n--The WordPress Team\nhttp://wordpress.org/\n";
        $this->po_mail = '""
"Your new WordPress blog has been successfully set up at:\\n"
"\\n"
"%1$s\\n"
"\\n"
"You can log in to the administrator account with the following information:\\n"
"\\n"
"Username: %2$s\\n"
"Password: %3$s\\n"
"\\n"
"We hope you enjoy your new blog. Thanks!\\n"
"\\n"
"--The WordPress Team\\n"
"http://wordpress.org/\\n"';
        $this->a90 = str_repeat("a", 90);
        $this->po_a90 = "\"{$this->a90}\"";
    }
 function tearDown()
 {
     parent::tearDown();
     remove_all_filters('gp_breadcrumb_items');
 }
 function tearDown()
 {
     parent::tearDown();
     remove_filter('backpress_set_cookie', array(&$this, 'filter_do_not_set_cookie'));
 }
 function setUp()
 {
     parent::setUp();
     $this->properties = new GP_Format_Properties();
     $this->entries = array(array('normal_string', 'Normal String', 'Just A Normal String', ''), array('normal_string_with_colan', 'Normal String', 'Just A Normal String', ''), array('with_a_quote', 'I\'m with a quote', 'I\'m with a quote', ''), array('with_newlines', 'new\\nlines', 'new\\nlines', ''), array('with_doublequotes', 'double "quotes"', 'I have double "quotes"', ''), array('with_utf8', 'питка', 'баба ми омеси питка', ''), array('with_lt', 'you < me', 'ти < аз', ''), array('with_gt', 'me > you', 'аз > ти', ''), array('with_amps', 'me & you are not &amp;', 'аз & ти не сме &amp;', ''), array('with_comment', 'baba', 'баба', 'Me, myself & Irene'));
 }
 function setUp()
 {
     parent::setUp();
     $this->strings = new GP_Format_Strings();
     $this->entries = array(array('Normal String', 'Normal String', 'Just A Normal String', ''), array('I\'m with a quote', 'I\'m with a quote', 'I\'m with a quote', ''), array('double "quotes"', 'double "quotes"', 'I have double "quotes"', ''), array('питка', 'питка', 'баба ми омеси питка', ''), array('you < me', 'you < me', 'ти < аз', ''), array('me > you', 'me > you', "аз > ти", ''), array('me & you are not &amp;', 'me & you are not &amp;', 'аз & ти не сме &amp;', ''), array('baba', 'baba', 'баба', 'Me, myself & Irene'));
 }
 function setUp()
 {
     parent::setUp();
     global $gpdb;
     $gpdb->mice = '';
 }
Exemple #13
0
 function setUp()
 {
     parent::setUp();
     $GLOBALS['wpdb']->mytable = 'mytable';
     $this->t = new GP_My_Table();
 }
 function setUp()
 {
     $this->sub_dir = '/gp/';
     $this->url = 'http://example.org' . $this->sub_dir;
     parent::setUp();
 }
Exemple #15
0
 function setUp()
 {
     parent::setUp();
     $this->url = '/gp/';
     gp_update_option('uri', 'http://example.org' . $this->url);
 }