/** * @expectedException InvalidArgumentException * @expectedExceptionMessage The number must be greater than 0, but got -5. */ public function testDropRightWithNegativeNumber() { $this->map->dropRight(-5); }