Changeset View
Changeset View
Standalone View
Standalone View
src/repository/parser/__tests__/ArcanistMercurialParserTestCase.php
<?php | <?php | ||||
final class ArcanistMercurialParserTestCase extends PhutilTestCase { | final class ArcanistMercurialParserTestCase extends PhutilTestCase { | ||||
public function testParseAll() { | public function testParseAll() { | ||||
$root = dirname(__FILE__).'/mercurial/'; | $root = __DIR__.'/mercurial/'; | ||||
foreach (Filesystem::listDirectory($root, $hidden = false) as $file) { | foreach (Filesystem::listDirectory($root, $hidden = false) as $file) { | ||||
$this->parseData( | $this->parseData( | ||||
basename($file), | basename($file), | ||||
Filesystem::readFile($root.'/'.$file)); | Filesystem::readFile($root.'/'.$file)); | ||||
} | } | ||||
} | } | ||||
private function parseData($name, $data) { | private function parseData($name, $data) { | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0