/**
  * Checks if the "getAll" method basically works
  *
  * @test
  */
 public function getAllBasicallyWorks()
 {
     $iterator = new TextIterator('This is a test string.', TextIterator::WORD);
     $expectedResult = array(0 => 'This', 1 => ' ', 2 => 'is', 3 => ' ', 4 => 'a', 5 => ' ', 6 => 'test', 7 => ' ', 8 => 'string', 9 => '.');
     $this->assertEquals($iterator->getAll(), $expectedResult, 'Wrong element returned by getAll().');
 }