public function FeedsTamperStrPadTestCase::test in Feeds Tamper 6        
                          
                  
                        Same name and namespace in other branches
- 7 tests/feeds_tamper_plugins.test \FeedsTamperStrPadTestCase::test()
File
 
   - tests/feeds_tamper_plugins.test, line 850
- Unit tests for feeds tamper plugins.
Class
  
  - FeedsTamperStrPadTestCase 
- Tests for str_pad.inc
Code
public function test() {
  $settings = array(
    'pad_length' => '10',
    'pad_string' => '',
    'pad_type' => STR_PAD_RIGHT,
  );
  $this
    ->execute('hi', 'hi        ', $settings);
  $settings['pad_type'] = STR_PAD_LEFT;
  $this
    ->execute('hi', '        hi', $settings);
  $settings['pad_type'] = STR_PAD_RIGHT;
  $settings['pad_string'] = '0';
  $settings['pad_length'] = '5';
  
  $this
    ->execute('A.0', 'A.000', $settings);
}