Page MenuHomePhabricator

Add a `PhutilLibraryTestCase` class
ClosedPublic

Authored by joshuaspence on Jan 6 2015, 1:37 AM.
Tags
None
Referenced Files
F17711696: D11231.diff
Thu, Jul 17, 9:13 AM
F17674480: D11231.diff
Sun, Jul 13, 7:19 AM
F17655547: D11231.id26972.diff
Sat, Jul 12, 10:11 AM
Unknown Object (File)
May 21 2025, 3:29 AM
Unknown Object (File)
May 10 2025, 5:35 AM
Unknown Object (File)
May 7 2025, 6:46 PM
Unknown Object (File)
Apr 30 2025, 1:06 AM
Unknown Object (File)
Apr 25 2025, 2:32 PM
Subscribers

Details

Summary

Some discussion in D11052. Adds a base class for testing phutil libraries.

Test Plan

arc unit

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Add a `PhutilLibraryTestCase` class.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added reviewers: epriestley, btrahan.
epriestley edited edge metadata.
epriestley added inline comments.
src/__tests__/PhutilLibraryTestCase.php
46

Can we new ReflectionClass($this)->getFile() instead? This seems sketchier than that.

This revision is now accepted and ready to land.Jan 6 2015, 2:43 PM
joshuaspence edited edge metadata.

Use ReflectionClass::getFileName()

This revision was automatically updated to reflect the committed changes.