Add a bunch of tests for subclass implementations

Summary: Add a bunch of tests to ensure that subclasses behave.

Test Plan: `arc unit`

Reviewers: eadler, #blessed_reviewers, epriestley

Reviewed By: eadler, #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13272
This commit is contained in:
Joshua Spence
2015-06-15 18:07:06 +10:00
parent b6d745b666
commit 1239cfdeaf
29 changed files with 302 additions and 11 deletions

View File

@@ -158,7 +158,7 @@ abstract class PhabricatorPHIDType extends Phobject {
*
* @return dict<string, PhabricatorPHIDType> Map of type constants to types.
*/
public static function getAllTypes() {
final public static function getAllTypes() {
static $types;
if ($types === null) {
$objects = id(new PhutilSymbolLoader())

View File

@@ -0,0 +1,10 @@
<?php
final class PhabricatorPHIDTypeTestCase extends PhutilTestCase {
public function testGetAllTypes() {
PhabricatorPHIDType::getAllTypes();
$this->assertTrue(true);
}
}