Install phpunit
Add testcase for repos with dashes and simplify regex