From 8501bb71e2a23b7c061642309e48f406db906fa3 Mon Sep 17 00:00:00 2001 From: Hiraku NAKANO Date: Sat, 7 May 2016 16:21:19 +0900 Subject: [PATCH] Drop dependency on http://www.example.com --- 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 73861e396..b83d09773 100644 --- a/tests/Composer/Test/Util/RemoteFilesystemTest.php +++ b/tests/Composer/Test/Util/RemoteFilesystemTest.php @@ -136,14 +136,14 @@ class RemoteFilesystemTest extends \PHPUnit_Framework_TestCase $io = $this->getMock('Composer\IO\IOInterface'); $io->expects($this->once()) ->method('setAuthentication') - ->with($this->equalTo('example.com'), $this->equalTo('user'), $this->equalTo('pass')); + ->with($this->equalTo('github.com'), $this->equalTo('user'), $this->equalTo('pass')); $fs = new RemoteFilesystem($io); try { - $fs->getContents('example.com', 'http://user:pass@www.example.com/something'); + $fs->getContents('github.com', 'https://user:pass@github.com/composer/composer/404'); } catch (\Exception $e) { $this->assertInstanceOf('Composer\Downloader\TransportException', $e); - $this->assertEquals(404, $e->getCode()); + $this->assertNotEquals(200, $e->getCode()); } }