|
@@ -22,6 +22,7 @@ class PerforceTest extends TestCase
|
|
|
{
|
|
|
protected $perforce;
|
|
|
protected $processExecutor;
|
|
|
+ protected $repoConfig;
|
|
|
protected $io;
|
|
|
|
|
|
const TEST_DEPOT = 'depot';
|
|
@@ -224,7 +225,7 @@ class PerforceTest extends TestCase
|
|
|
'p4user' => 'user',
|
|
|
'p4password' => 'TEST_PASSWORD',
|
|
|
);
|
|
|
- $this->perforce = new Perforce($repoConfig, 'port', 'path', $this->processExecutor, false, $this->getMockIOInterface(), 'TEST');
|
|
|
+ $this->perforce = new Perforce($repoConfig, 'port', 'path', $this->processExecutor, false, $this->getMockIOInterface());
|
|
|
$password = $this->perforce->queryP4Password();
|
|
|
$this->assertEquals('TEST_PASSWORD', $password);
|
|
|
}
|
|
@@ -289,7 +290,7 @@ class PerforceTest extends TestCase
|
|
|
$this->assertStringStartsWith($expected, fgets($stream));
|
|
|
}
|
|
|
$this->assertFalse(fgets($stream));
|
|
|
- } catch (Exception $e) {
|
|
|
+ } catch (\Exception $e) {
|
|
|
fclose($stream);
|
|
|
throw $e;
|
|
|
}
|
|
@@ -310,7 +311,7 @@ class PerforceTest extends TestCase
|
|
|
$this->assertStringStartsWith($expected, fgets($stream));
|
|
|
}
|
|
|
$this->assertFalse(fgets($stream));
|
|
|
- } catch (Exception $e) {
|
|
|
+ } catch (\Exception $e) {
|
|
|
fclose($stream);
|
|
|
throw $e;
|
|
|
}
|