1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

extract regex to const. To be able to reuse it

This commit is contained in:
Jaapio 2015-11-29 13:59:54 +01:00
parent b471440ea0
commit df92cb09ab
2 changed files with 7 additions and 2 deletions

View file

@ -26,6 +26,7 @@ class GitLabDriverTest extends \PHPUnit_Framework_TestCase
$this->config->merge(array(
'config' => array(
'home' => sys_get_temp_dir().'/composer-test',
'gitlab-domains' => array('mycompany.com/gitlab', 'gitlab.com')
),
));
@ -215,6 +216,7 @@ JSON;
array('git@gitlab.com:foo/bar.git', extension_loaded('openssl')),
array('git@example.com:foo/bar.git', false),
array('http://example.com/foo/bar', false),
array('https://mycompany.com/gitlab/mygroup/myproject', true),
);
}