function printStatus(Status $status, $forceOutputAll = false) { if (false === $forceOutputAll && $status->getSvnNumber()->hasRequestedNumbers()) { exit($status->getOutput($status->getSvnNumber()->getRequestedNumbers())); } else { exit($status->getOutput(null)); } }
/** * @expectedException InvalidArgumentException * @expectedExceptionMessage No line exists for numbers: */ public function testThatGetLineInformationFromFileNumbersThrowsExceptionWhenNoIntersectionExists() { $status = new Status($this->getSvnNumberMock()); $status->getLineInformationFromFileNumbers(array()); }