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