/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage $number must be greater than 0, but got -5. */ public function testTakeWithNegativeNumber() { $this->seq->take(-5); }