--TEST-- Perforce: "Help" Command --SKIPIF-- 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: