TYPO3 CMS  TYPO3_6-2
TitleCaseFilterTest.php
Go to the documentation of this file.
1 <?php
3 
18 
25 
29  protected $fixture = NULL;
30 
34  public function setUp() {
35  $this->fixture = new TitleCaseFilter();
36  $GLOBALS['TSFE'] = new \stdClass();
37  $GLOBALS['TSFE']->csConvObj = new CharsetConverter();
38  $GLOBALS['TSFE']->renderCharset = 'utf-8';
39  }
40 
44  public function stringProvider() {
45  return array(
46  'some text' => array('some text', 'Some Text'),
47  'some Text' => array('some Text', 'Some Text'),
48  'Ein Maß' => array('Ein Maß', 'Ein Maß'),
49  '¿por que?' => array('¿por que?', '¿por Que?'),
50  );
51  }
52 
57  public function filterForStringReturnsStringWithUppercasedWords($input, $expected) {
58  $this->assertSame(
59  $expected,
60  $this->fixture->filter($input)
61  );
62  }
63 }
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]