[wp-unit-tests] [WordPress Unit Tests] #130: Introduce assertion for comparing sets

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 12 21:56:10 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 bpetty):

 While this seems handy, it's not hard to use array_diff() directly, and it
 keeps the code in the unit test clear without using custom assertion
 methods that new developers that are plenty familiar with PHPUnit, but not
 familiar with WP quickly get confused on.

 If I see a method that starts with "assert", I'm immediately assuming it's
 a call into PHPUnit.

-- 
Ticket URL: <http://unit-tests.trac.wordpress.org/ticket/130#comment:3>
WordPress Unit Tests <http://unit-tests.trac.wordpress.org>
My example project


More information about the wp-unit-tests mailing list