mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix tests depending on remote sites
This commit is contained in:
parent
1cd07e1a2c
commit
ac8ac6e9b2
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue