Test (and document) what phutil_string_cast actually does to some things.
Details
Details
- Reviewers
speck - Group Reviewers
O1: Blessed Committers - Commits
- rARC152ba1f02a31: Add explicit tests for phutil_string_cast
arc unit
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Branch
- phorge (branched from master)
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 626 Build 626: arc lint + arc unit
Event Timeline
Comment Actions
Nice. Could we add some additional tests for Boolean true/false, the number zero, populated and empty array?
src/utils/__tests__/PhutilUtilsTestCase.php | ||
---|---|---|
1083 | that's not what I would have expected, but PHP is special. |
Comment Actions
Don't kill me but I don't remember the names now but we have classes to build URLs, HTML and Remarkup etc. - all of them has __toString() I think.