1
0
Fork 0
composer/tests/Composer/Test/Util
Michael Chekin 6d9bf42655
Additional Util\RemoteFileSystem tests (#8960)
* RemoteFilesystemTest: simplifying some mock expectations calls

- will($this->returnValue()) to willReturn()
- will($this->returnCallBack()) to willReturnCallback()

* RemoteFilesystemTest: extracting identical mocks for IOInterface into a separate getIOInterfaceMock() method

* RemoteFilesystemTest: converting protected helper methods to private.

* RemoteFilesystemTest: moving getConfigMock() private method after the public methods (with other private methods)

* adding RemoteFileSystemTest::testCopyWithRetryAuthFailureFalse() unit test.

* Allow optional injecting of AuthHelper into RemoteFilesystem constructor.

* adding RemoteFileSystemTest::testCopyWithSuccessOnRetry() unit test.

* using backward compatible @expectedException in RemoteFilesystemTest.php

* RemoteFilesystemTest: extracting RemoteFilesystem with mocked method creation into a separate method.

* RemoteFilesystemTest: extracting AuthHelper with mocked method creation into a separate method.
2020-06-16 09:35:33 +02:00
..
Fixtures
AuthHelperTest.php Add Util\AuthHelper unit test coverage (#8863) 2020-05-04 09:48:23 +02:00
BitbucketTest.php Additional Util\Bitbucket class test coverage (#8835) 2020-04-28 11:45:30 +02:00
ConfigValidatorTest.php
ErrorHandlerTest.php Build tweaks 2020-05-20 16:20:54 +02:00
FilesystemTest.php
GitHubTest.php Merge branch 'master' into 2.0 2020-02-07 22:20:51 +01:00
GitLabTest.php Merge branch 'master' into 2.0 2020-02-07 22:20:51 +01:00
GitTest.php fix risky tests (without any assertion) 2020-02-07 14:35:07 +08:00
HttpDownloaderTest.php
IniHelperTest.php
MetadataMinifierTest.php
NoProxyPatternTest.php
PackageSorterTest.php Fix package sorting 2020-05-03 16:31:47 +02:00
PerforceTest.php
PlatformTest.php
ProcessExecutorTest.php Merge branch 'master' into 2.0 2020-02-07 22:20:51 +01:00
RemoteFilesystemTest.php Additional Util\RemoteFileSystem tests (#8960) 2020-06-16 09:35:33 +02:00
SilencerTest.php
StreamContextFactoryTest.php Merge branch 'master' into 2.0 2020-02-07 22:20:51 +01:00
SvnTest.php
TlsHelperTest.php
UrlTest.php Merge branch 'master' into 2.0 2020-02-07 22:20:51 +01:00
ZipTest.php