Пример #1
0
 public function testThatOutputIsAsExpectedForAFiniteNumberOfFiles()
 {
     $status = new Status($this->getSvnNumberMock());
     $expectedArray = array("    1  A    foo/bar.txt         ");
     $expected = trim(implode(PHP_EOL, $expectedArray));
     $this->assertSame(str_replace("", "@", $expected), str_replace("", "@", trim($status->getOutput(array(1)))));
     $this->assertSame($expected, trim($status->getOutput(array(1))));
 }
Пример #2
0
 function printStatus(Status $status, $forceOutputAll = false)
 {
     if (false === $forceOutputAll && $status->getSvnNumber()->hasRequestedNumbers()) {
         exit($status->getOutput($status->getSvnNumber()->getRequestedNumbers()));
     } else {
         exit($status->getOutput(null));
     }
 }