Browse Source

Merge pull request #5758 from stof/clean_test_namespace

Fix namespace for tests for consistency
Jordi Boggiano 8 years ago
parent
commit
fd891d2e78

+ 2 - 1
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;

+ 2 - 1
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

+ 2 - 1
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;
 

+ 6 - 1
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;

+ 1 - 1
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;

+ 1 - 1
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;

+ 3 - 1
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

+ 2 - 1
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;
 
 /**

+ 2 - 1
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;
 

+ 2 - 1
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;