Differential D16908 Diff 40699 src/applications/repository/storage/__tests__/PhabricatorRepositoryTestCase.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/__tests__/PhabricatorRepositoryTestCase.php
Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | $poor = array( | ||||
'!', | '!', | ||||
'@', | '@', | ||||
'ca$hmoney', | 'ca$hmoney', | ||||
'repo with spaces', | 'repo with spaces', | ||||
'hyphen-', | 'hyphen-', | ||||
'-ated', | '-ated', | ||||
'_underscores_', | '_underscores_', | ||||
'yes!', | 'yes!', | ||||
'quack.git', | |||||
'git.git', | |||||
'.git.git.git', | |||||
// 65-character names are no good. | // 65-character names are no good. | ||||
str_repeat('a', 65), | str_repeat('a', 65), | ||||
); | ); | ||||
foreach ($good as $nice_name) { | foreach ($good as $nice_name) { | ||||
$actual = PhabricatorRepository::isValidRepositorySlug($nice_name); | $actual = PhabricatorRepository::isValidRepositorySlug($nice_name); | ||||
$this->assertEqual( | $this->assertEqual( | ||||
Show All 20 Lines |