Browse Source

Add test for fancy branch names, refs #935

Jordi Boggiano 12 years ago
parent
commit
4b18be75d7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/Composer/Test/Repository/VcsRepositoryTest.php

+ 2 - 2
tests/Composer/Test/Repository/VcsRepositoryTest.php

@@ -64,7 +64,7 @@ class VcsRepositoryTest extends \PHPUnit_Framework_TestCase
         $process->execute('git tag 0.6.0', $null);
 
         // add feature-a branch
-        $process->execute('git checkout -b feature-a', $null);
+        $process->execute('git checkout -b feature/a-1.0-B', $null);
         file_put_contents('foo', 'bar feature');
         $process->execute('git add foo', $null);
         $process->execute('git commit -m change-a', $null);
@@ -127,7 +127,7 @@ class VcsRepositoryTest extends \PHPUnit_Framework_TestCase
             '1.0.x-dev' => true,
             '1.1.x-dev' => true,
             'dev-feature-b' => true,
-            'dev-feature-a' => true,
+            'dev-feature/a-1.0-B' => true,
             'dev-master' => true,
         );