TYPO3 CMS  TYPO3_6-2
UpperCaseFilterTest.php
Go to the documentation of this file.
1 <?php
3 
23 
27  protected $fixture = NULL;
28 
32  public function setUp() {
33  $this->fixture = new \TYPO3\CMS\Form\Filter\UpperCaseFilter();
34  $GLOBALS['TSFE'] = new \stdClass();
35  $GLOBALS['TSFE']->csConvObj = new \TYPO3\CMS\Core\Charset\CharsetConverter();
36  $GLOBALS['TSFE']->renderCharset = 'utf-8';
37  }
38 
39  public function stringProvider() {
40  return array(
41  'asdf' => array('asdf', 'ASDF'),
42  'as?df' => array('as?df', 'AS?DF'),
43  );
44  }
45 
50  public function filterForStringReturnsUppercasedString($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'][]