--TEST--
Perforce: "Help" Command
--SKIPIF--
<?php if (!extension_loaded('perforce')) die("skip\n");
--FILE--
<?php
require 'TestClientUser.php';
$ui = new TestClientUser();
$p4 = new PerforceClient($ui);
$p4->setPort('public.perforce.com:1666');
if (!$p4->init()) {
die("Failed to initialize Perforce client interface.\n");
}
$p4->run('help');
$p4->final();
$output = array_slice($ui->GetOutput(), 1, 3);
foreach ($output as $line) {
echo "$line\n";
}
--EXPECT--
Perforce -- the Fast Software Configuration Management System.
p4 is Perforce's client tool for the command line. Try:
# |
Change |
User |
Description |
Committed |
|
#1
|
6084 |
Jon_Parise |
Adding some initial unit tests. |
|
|