diff --git a/tests/regression/InstallCommandTest.php b/tests/regression/InstallCommandTest.php index e13bb63f..80aca29b 100644 --- a/tests/regression/InstallCommandTest.php +++ b/tests/regression/InstallCommandTest.php @@ -19,7 +19,7 @@ public function testInstallsPhar(): void { $this->runPhiveCommand('install', ['phpunit@5.3.1']); $this->assertSymlinkTargetEquals( - $this->getToolsDirectory()->file('phpunit'), + $this->getToolsDirectory()->file('phpunit')->asString(), $this->getPhiveHomeDirectory()->child('phars')->file('phpunit-5.3.1.phar')->asString() ); } diff --git a/tests/regression/RemoveCommandTest.php b/tests/regression/RemoveCommandTest.php index f4d6b257..365d3099 100644 --- a/tests/regression/RemoveCommandTest.php +++ b/tests/regression/RemoveCommandTest.php @@ -7,7 +7,7 @@ public function testRemovesSymlink(): void { $this->usePhiveXmlConfig(__DIR__ . '/fixtures/removeCommandTest/phive.xml'); $this->createSymlink( $this->getPhiveHomeDirectory()->child('phars')->file('phpunit-5.3.1.phar')->asString(), - $this->getToolsDirectory()->file('phpunit') + $this->getToolsDirectory()->file('phpunit')->asString() ); $this->runPhiveCommand('remove', ['phpunit']); diff --git a/tests/regression/UpdateCommandTest.php b/tests/regression/UpdateCommandTest.php index e5db460d..816db747 100644 --- a/tests/regression/UpdateCommandTest.php +++ b/tests/regression/UpdateCommandTest.php @@ -8,15 +8,15 @@ public function testUpdatesSymlinkToUpdatedVersion(): void { $this->usePhiveXmlConfig(__DIR__ . '/fixtures/updateCommandTest/phive.xml'); $this->createSymlink( - $this->getPhiveHomeDirectory()->child('phars')->file('phpunit-5.3.1.phar'), - $this->getToolsDirectory()->file('phpunit') + $this->getPhiveHomeDirectory()->child('phars')->file('phpunit-5.3.1.phar')->asString(), + $this->getToolsDirectory()->file('phpunit')->asString() ); $this->runPhiveCommand('update'); $this->assertSymlinkTargetEquals( - $this->getToolsDirectory()->file('phpunit'), - $this->getPhiveHomeDirectory()->child('phars')->file('phpunit-5.3.4.phar') + $this->getToolsDirectory()->file('phpunit')->asString(), + $this->getPhiveHomeDirectory()->child('phars')->file('phpunit-5.3.4.phar')->asString() ); } } diff --git a/tests/regression/fixtures/phive-home/repositories.xml b/tests/regression/fixtures/phive-home/repositories.xml index 72eb93fa..3d33e63a 100644 --- a/tests/regression/fixtures/phive-home/repositories.xml +++ b/tests/regression/fixtures/phive-home/repositories.xml @@ -1,5 +1,11 @@ + + + + + + @@ -18,6 +24,9 @@ + + + @@ -72,4 +81,19 @@ + + + + + + + + + + + + + + +