--TEST-- Perforce: Initialization --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"); } echo $p4->getPort(); $p4->final(); --EXPECT-- public.perforce.com:1666