From ac8ac6e9b296ba89ddd342c3a2ff7bfccc426be4 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 29 Mar 2012 15:09:01 +0200 Subject: [PATCH] Fix tests depending on remote sites --- tests/Composer/Test/Util/RemoteFilesystemTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Composer/Test/Util/RemoteFilesystemTest.php b/tests/Composer/Test/Util/RemoteFilesystemTest.php index e196fa3f4..6fdb565eb 100644 --- a/tests/Composer/Test/Util/RemoteFilesystemTest.php +++ b/tests/Composer/Test/Util/RemoteFilesystemTest.php @@ -121,7 +121,7 @@ class RemoteFilesystemTest extends \PHPUnit_Framework_TestCase { $fs = new RemoteFilesystem($this->getMock('Composer\IO\IOInterface')); - $this->assertContains('RFC 2606', $fs->getContents('http://example.org', 'http://example.org')); + $this->assertContains('testGetContents', $fs->getContents('http://example.org', 'file://'.__FILE__)); } public function testCopy() @@ -129,9 +129,9 @@ class RemoteFilesystemTest extends \PHPUnit_Framework_TestCase $fs = new RemoteFilesystem($this->getMock('Composer\IO\IOInterface')); $file = tempnam(sys_get_temp_dir(), 'c'); - $this->assertTrue($fs->copy('http://example.org', 'http://example.org', $file)); + $this->assertTrue($fs->copy('http://example.org', 'file://'.__FILE__, $file)); $this->assertFileExists($file); - $this->assertContains('RFC 2606', file_get_contents($file)); + $this->assertContains('testCopy', file_get_contents($file)); unlink($file); }