From 523d767646d2a87ef187982ef8be6d1bf5daa8ae Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Mon, 16 Jun 2014 05:42:43 +1000 Subject: [PATCH] Add a unit test to check `src/__phutil_library_map__.php`. Summary: See D9557. Add a unit test to ensure that `src/__phutil_library_map__.php` is up-to-date. Test Plan: Ran `arc unit`. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9558 --- src/__phutil_library_map__.php | 2 ++ src/__tests__/ArcanistInfrastructureTestCase.php | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/__tests__/ArcanistInfrastructureTestCase.php diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 3cd13d5e..972915e1 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -88,6 +88,7 @@ phutil_register_library_map(array( 'ArcanistHgProxyServer' => 'hgdaemon/ArcanistHgProxyServer.php', 'ArcanistHgServerChannel' => 'hgdaemon/ArcanistHgServerChannel.php', 'ArcanistHookAPI' => 'repository/hookapi/ArcanistHookAPI.php', + 'ArcanistInfrastructureTestCase' => '__tests__/ArcanistInfrastructureTestCase.php', 'ArcanistInlinesWorkflow' => 'workflow/ArcanistInlinesWorkflow.php', 'ArcanistInstallCertificateWorkflow' => 'workflow/ArcanistInstallCertificateWorkflow.php', 'ArcanistJSHintLinter' => 'lint/linter/ArcanistJSHintLinter.php', @@ -265,6 +266,7 @@ phutil_register_library_map(array( 'ArcanistHelpWorkflow' => 'ArcanistBaseWorkflow', 'ArcanistHgClientChannel' => 'PhutilProtocolChannel', 'ArcanistHgServerChannel' => 'PhutilProtocolChannel', + 'ArcanistInfrastructureTestCase' => 'ArcanistTestCase', 'ArcanistInlinesWorkflow' => 'ArcanistBaseWorkflow', 'ArcanistInstallCertificateWorkflow' => 'ArcanistBaseWorkflow', 'ArcanistJSHintLinter' => 'ArcanistExternalLinter', diff --git a/src/__tests__/ArcanistInfrastructureTestCase.php b/src/__tests__/ArcanistInfrastructureTestCase.php new file mode 100644 index 00000000..e1d6bb45 --- /dev/null +++ b/src/__tests__/ArcanistInfrastructureTestCase.php @@ -0,0 +1,13 @@ +selectAndLoadSymbols(); + $this->assertTrue(true); + } +}