TYPO3 CMS  TYPO3_6-2
LowerCaseFilterTest.php
Go to the documentation of this file.
1 <?php
3 
23 
27  protected $fixture;
28 
29  public function setUp() {
30  $this->fixture = new \TYPO3\CMS\Form\Filter\LowerCaseFilter();
31  $GLOBALS['TSFE'] = new \stdClass();
32  $GLOBALS['TSFE']->csConvObj = new \TYPO3\CMS\Core\Charset\CharsetConverter();
33  $GLOBALS['TSFE']->renderCharset = 'utf-8';
34  }
35 
36  public function dataProvider() {
37  return array(
38  'a -> a' => array('a', 'a'),
39  'A -> a' => array('A', 'a'),
40  'AaA -> aaa' => array('AaA', 'aaa'),
41  'ÜßbÉØ -> üßbéø' => array('ÜßbÉØ', 'üßbéø'),
42  '01A23b -> 01a23b' => array('01A23b', '01a23b'),
43  );
44  }
45 
50  public function filterForVariousInputReturnsLowercasedInput($input, $expected) {
51  $this->assertSame(
52  $expected,
53  $this->fixture->filter($input)
54  );
55  }
56 }
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]