Fix tests
parent
a07f9ffba9
commit
d72a07db06
|
@ -36,7 +36,7 @@ class ArchiveDownloaderTest extends TestCase
|
||||||
->will($this->returnValue('/vendor'));
|
->will($this->returnValue('/vendor'));
|
||||||
|
|
||||||
$first = $method->invoke($downloader, $packageMock, '/path');
|
$first = $method->invoke($downloader, $packageMock, '/path');
|
||||||
$this->assertRegExp('#/vendor/composer/[a-z0-9]+\.js#', $first);
|
$this->assertRegExp('#/vendor/composer/tmp-[a-z0-9]+\.js#', $first);
|
||||||
$this->assertSame($first, $method->invoke($downloader, $packageMock, '/path'));
|
$this->assertSame($first, $method->invoke($downloader, $packageMock, '/path'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ class FileDownloaderTest extends TestCase
|
||||||
->with('vendor-dir')
|
->with('vendor-dir')
|
||||||
->will($this->returnValue('/vendor'));
|
->will($this->returnValue('/vendor'));
|
||||||
|
|
||||||
$this->assertRegExp('#/vendor/composer/[a-z0-9]+\.js#', $method->invoke($downloader, $packageMock, '/path'));
|
$this->assertRegExp('#/vendor/composer/tmp-[a-z0-9]+\.js#', $method->invoke($downloader, $packageMock, '/path'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testDownloadButFileIsUnsaved()
|
public function testDownloadButFileIsUnsaved()
|
||||||
|
|
Loading…
Reference in New Issue