From d5810c8a36a8b4f485c458762034d6762cb3aa80 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Wed, 5 Oct 2016 10:45:22 +0200 Subject: [PATCH] Fix namespace for tests for consistency --- tests/Composer/Test/Repository/ArtifactRepositoryTest.php | 3 ++- .../Composer/Test/Repository/FilesystemRepositoryTest.php | 3 ++- tests/Composer/Test/Repository/PathRepositoryTest.php | 3 ++- tests/Composer/Test/Repository/Pear/ChannelReaderTest.php | 7 ++++++- .../Test/Repository/Pear/ChannelRest10ReaderTest.php | 2 +- .../Test/Repository/Pear/ChannelRest11ReaderTest.php | 2 +- .../Test/Repository/Pear/PackageDependencyParserTest.php | 4 +++- tests/Composer/Test/Repository/PearRepositoryTest.php | 3 ++- tests/Composer/Test/Repository/RepositoryManagerTest.php | 3 ++- .../Test/Repository/Vcs/GitBitbucketDriverTest.php | 3 ++- 10 files changed, 23 insertions(+), 10 deletions(-) diff --git a/tests/Composer/Test/Repository/ArtifactRepositoryTest.php b/tests/Composer/Test/Repository/ArtifactRepositoryTest.php index a77cf1a72..e7ca82997 100644 --- a/tests/Composer/Test/Repository/ArtifactRepositoryTest.php +++ b/tests/Composer/Test/Repository/ArtifactRepositoryTest.php @@ -10,8 +10,9 @@ * file that was distributed with this source code. */ -namespace Composer\Repository; +namespace Composer\Test\Repository; +use Composer\Repository\ArtifactRepository; use Composer\TestCase; use Composer\IO\NullIO; use Composer\Config; diff --git a/tests/Composer/Test/Repository/FilesystemRepositoryTest.php b/tests/Composer/Test/Repository/FilesystemRepositoryTest.php index cde5eb402..07978deef 100644 --- a/tests/Composer/Test/Repository/FilesystemRepositoryTest.php +++ b/tests/Composer/Test/Repository/FilesystemRepositoryTest.php @@ -10,8 +10,9 @@ * file that was distributed with this source code. */ -namespace Composer\Repository; +namespace Composer\Test\Repository; +use Composer\Repository\FilesystemRepository; use Composer\TestCase; class FilesystemRepositoryTest extends TestCase diff --git a/tests/Composer/Test/Repository/PathRepositoryTest.php b/tests/Composer/Test/Repository/PathRepositoryTest.php index 872deb71f..dc9ac5e91 100644 --- a/tests/Composer/Test/Repository/PathRepositoryTest.php +++ b/tests/Composer/Test/Repository/PathRepositoryTest.php @@ -10,9 +10,10 @@ * file that was distributed with this source code. */ -namespace Composer\Repository; +namespace Composer\Test\Repository; use Composer\Package\Loader\ArrayLoader; +use Composer\Repository\PathRepository; use Composer\Semver\VersionParser; use Composer\TestCase; diff --git a/tests/Composer/Test/Repository/Pear/ChannelReaderTest.php b/tests/Composer/Test/Repository/Pear/ChannelReaderTest.php index 3e68282f4..2b7731a09 100644 --- a/tests/Composer/Test/Repository/Pear/ChannelReaderTest.php +++ b/tests/Composer/Test/Repository/Pear/ChannelReaderTest.php @@ -10,8 +10,13 @@ * file that was distributed with this source code. */ -namespace Composer\Repository\Pear; +namespace Composer\Test\Repository\Pear; +use Composer\Repository\Pear\ChannelInfo; +use Composer\Repository\Pear\DependencyConstraint; +use Composer\Repository\Pear\DependencyInfo; +use Composer\Repository\Pear\PackageInfo; +use Composer\Repository\Pear\ReleaseInfo; use Composer\TestCase; use Composer\Semver\VersionParser; use Composer\Semver\Constraint\Constraint; diff --git a/tests/Composer/Test/Repository/Pear/ChannelRest10ReaderTest.php b/tests/Composer/Test/Repository/Pear/ChannelRest10ReaderTest.php index 299eae37b..263a80420 100644 --- a/tests/Composer/Test/Repository/Pear/ChannelRest10ReaderTest.php +++ b/tests/Composer/Test/Repository/Pear/ChannelRest10ReaderTest.php @@ -10,7 +10,7 @@ * file that was distributed with this source code. */ -namespace Composer\Repository\Pear; +namespace Composer\Test\Repository\Pear; use Composer\TestCase; use Composer\Test\Mock\RemoteFilesystemMock; diff --git a/tests/Composer/Test/Repository/Pear/ChannelRest11ReaderTest.php b/tests/Composer/Test/Repository/Pear/ChannelRest11ReaderTest.php index 08420786e..562e000c8 100644 --- a/tests/Composer/Test/Repository/Pear/ChannelRest11ReaderTest.php +++ b/tests/Composer/Test/Repository/Pear/ChannelRest11ReaderTest.php @@ -10,7 +10,7 @@ * file that was distributed with this source code. */ -namespace Composer\Repository\Pear; +namespace Composer\Test\Repository\Pear; use Composer\TestCase; use Composer\Test\Mock\RemoteFilesystemMock; diff --git a/tests/Composer/Test/Repository/Pear/PackageDependencyParserTest.php b/tests/Composer/Test/Repository/Pear/PackageDependencyParserTest.php index 4f43d39f0..dd566055a 100644 --- a/tests/Composer/Test/Repository/Pear/PackageDependencyParserTest.php +++ b/tests/Composer/Test/Repository/Pear/PackageDependencyParserTest.php @@ -10,8 +10,10 @@ * file that was distributed with this source code. */ -namespace Composer\Repository\Pear; +namespace Composer\Test\Repository\Pear; +use Composer\Repository\Pear\DependencyConstraint; +use Composer\Repository\Pear\PackageDependencyParser; use Composer\TestCase; class PackageDependencyParserTest extends TestCase diff --git a/tests/Composer/Test/Repository/PearRepositoryTest.php b/tests/Composer/Test/Repository/PearRepositoryTest.php index b5abf17ba..62c0ce822 100644 --- a/tests/Composer/Test/Repository/PearRepositoryTest.php +++ b/tests/Composer/Test/Repository/PearRepositoryTest.php @@ -10,8 +10,9 @@ * file that was distributed with this source code. */ -namespace Composer\Repository; +namespace Composer\Test\Repository; +use Composer\Repository\PearRepository; use Composer\TestCase; /** diff --git a/tests/Composer/Test/Repository/RepositoryManagerTest.php b/tests/Composer/Test/Repository/RepositoryManagerTest.php index bedd07f8e..735fbd049 100644 --- a/tests/Composer/Test/Repository/RepositoryManagerTest.php +++ b/tests/Composer/Test/Repository/RepositoryManagerTest.php @@ -10,8 +10,9 @@ * file that was distributed with this source code. */ -namespace Composer\Repository; +namespace Composer\Test\Repository; +use Composer\Repository\RepositoryManager; use Composer\TestCase; use Composer\Util\Filesystem; diff --git a/tests/Composer/Test/Repository/Vcs/GitBitbucketDriverTest.php b/tests/Composer/Test/Repository/Vcs/GitBitbucketDriverTest.php index b8a79fea7..75f7be119 100644 --- a/tests/Composer/Test/Repository/Vcs/GitBitbucketDriverTest.php +++ b/tests/Composer/Test/Repository/Vcs/GitBitbucketDriverTest.php @@ -10,9 +10,10 @@ * file that was distributed with this source code. */ -namespace Composer\Repository\Vcs; +namespace Composer\Test\Repository\Vcs; use Composer\Config; +use Composer\Repository\Vcs\GitBitbucketDriver; use Composer\TestCase; use Composer\Util\Filesystem;