Page MenuHomePhabricator

Improve the `PhabricatorInfrastructureTestCase` unit tests
ClosedPublic

Authored by joshuaspence on Jul 5 2014, 3:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 2:07 AM
Unknown Object (File)
Fri, Apr 26, 4:00 PM
Unknown Object (File)
Fri, Apr 26, 2:18 PM
Unknown Object (File)
Tue, Apr 23, 5:51 PM
Unknown Object (File)
Sun, Apr 14, 3:37 PM
Unknown Object (File)
Thu, Apr 11, 6:49 PM
Unknown Object (File)
Thu, Apr 11, 6:49 PM
Unknown Object (File)
Mon, Apr 8, 9:19 PM
Subscribers

Details

Summary

Improve the PhabricatorInfrastructureTestCase unit tests such that they will fail if any of the following conditions are satisfied:

  • A symbol referenced in the __phutil_library_map__.php file no longer exists.
  • A symbol exists in the library but is not referenced within the __phutil_library_map__.php file.
  • A symbol extends from a different parent symbol than that declared in the __phutil_library_map.php file.
Test Plan

See D9824.

Diff Detail

Repository
rP Phabricator
Branch
librarytest
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 1528
Build 1528: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

joshuaspence retitled this revision from to Improve the `PhabricatorInfrastructureTestCase` unit tests.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jul 5 2014, 3:25 PM
src/__tests__/PhabricatorInfrastructureTestCase.php
26

Is there a phutil_get_current_library() method, which would be a little nicer?

joshuaspence updated this revision to Diff 23586.

Closed by commit rP8fa1708940c6 (authored by @joshuaspence).