[wp-unit-tests] [WordPress Unit Tests] #130: Introduce assertion for comparing sets
WordPress Trac
noreply at wordpress.org
Thu Oct 18 18:59:18 UTC 2012
#130: Introduce assertion for comparing sets
----------------------------+------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Test Framework | Resolution:
Keywords: has-patch |
----------------------------+------------------
Comment (by scribu):
Replying to [comment:5 kurtpayne]:
> I think the name should be changed to `assertEqualArray`, though. This
is in line with the precedent set by `assertEqualXMLStructure`.
I disagree; assertEqualXMLStructure() is an outlier. Counter examples:
assertXmlFileEqualsXmlFile(), assertXmlStringEqualsXmlFile().
The correct name would be `assertHasSameElementsAs()`.
--
Ticket URL: <https://unit-test.trac.wordpress.org/ticket/130#comment:6>
WordPress Unit Tests <https://unit-test.trac.wordpress.org>
My example project
More information about the wp-unit-tests
mailing list