Page MenuHomePhabricator

D11417.diff
No OneTemporary

D11417.diff

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() {

File Metadata

Mime Type
text/plain
Expires
Mon, May 13, 10:05 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6276198
Default Alt Text
D11417.diff (1 KB)

Event Timeline