Exemplo n.º 1
0
 /**
  * @expectedException Simple\Type\Exception\IndexOutOfBoundsException
  */
 public function testIsNotGettingCharacterAtNegativeIndex()
 {
     $string = new String('abcdef');
     $this->assertEquals('b', $string->charAt(-1));
 }