3
final class ArcanistInfrastructureTestCase extends ArcanistTestCase {
6
* This is more of an acceptance test case instead of a unit test. It verifies
7
* that all symbols can be loaded correctly. It can catch problems like
8
* missing methods in descendants of abstract base classes.
10
public function testEverythingImplemented() {
11
id(new PhutilSymbolLoader())->selectAndLoadSymbols();
12
$this->assertTrue(true);
16
* This is more of an acceptance test case instead of a unit test. It verifies
17
* that all the library map is up-to-date.
19
public function testLibraryMap() {
20
$library = phutil_get_current_library_name();
21
$root = phutil_get_library_root($library);
23
$new_library_map = id(new PhutilLibraryMapBuilder($root))
26
$bootloader = PhutilBootloader::getInstance();
27
$old_library_map = $bootloader->getLibraryMapWithoutExtensions($library);
28
unset($old_library_map[PhutilLibraryMapBuilder::LIBRARY_MAP_VERSION_KEY]);
33
'The library map does not appear to be up-to-date. Try '.
34
'rebuilding the map with `arc liberate`.');