diff --git a/src/__tests__/PhutilLibraryTestCase.php b/src/__tests__/PhutilLibraryTestCase.php --- a/src/__tests__/PhutilLibraryTestCase.php +++ b/src/__tests__/PhutilLibraryTestCase.php @@ -11,7 +11,9 @@ * missing methods in descendants of abstract base classes. */ public function testEverythingImplemented() { - id(new PhutilSymbolLoader())->selectAndLoadSymbols(); + id(new PhutilSymbolLoader()) + ->setLibrary($this->getLibraryName()) + ->selectAndLoadSymbols(); $this->assertTrue(true); } @@ -46,6 +48,7 @@ */ public function testMethodVisibility() { $symbols = id(new PhutilSymbolLoader()) + ->setLibrary($this->getLibraryName()) ->selectSymbolsWithoutLoading(); $classes = array(); @@ -101,6 +104,13 @@ } /** + * Get the name of the library currently being tested. + */ + protected function getLibraryName() { + return phutil_get_library_name_for_root($this->getLibraryRoot()); + } + + /** * Get the root directory for the library currently being tested. */ protected function getLibraryRoot() {