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