TYPO3 CMS  TYPO3_6-2
AlphabeticFilterTest.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\AlphabeticFilter();
34  }
35 
40  $input = 'My name contains äøüößØœ';
41  // This is default, but let's be explicit:
42  $this->fixture->setAllowWhiteSpace(TRUE);
43  $this->assertSame($input, $this->fixture->filter($input));
44  }
45 
50  $input = 'My name contains äøüößØœ';
51  $expected = 'MynamecontainsäøüößØœ';
52  $this->fixture->setAllowWhiteSpace(FALSE);
53  $this->assertSame($expected, $this->fixture->filter($input));
54  }
55 
56 }