[wp-trac] [WordPress Trac] #35987: Unit test: wp_ext2type

WordPress Trac noreply at wordpress.org
Mon Mar 14 13:36:36 UTC 2016


#35987: Unit test: wp_ext2type
------------------------------------------------+--------------------------
 Reporter:  borgesbruno                         |       Owner:
     Type:  enhancement                         |  boonebgorges
 Priority:  normal                              |      Status:  assigned
Component:  Media                               |   Milestone:  Future
 Severity:  normal                              |  Release
 Keywords:  has-unit-tests has-patch 4.6-early  |     Version:
                                                |  Resolution:
                                                |     Focuses:
------------------------------------------------+--------------------------

Comment (by borgesbruno):

 Tks for the feedback @boonebgorges, it's done!
 I made the tests for each extension and just for curiosity I also made a
 benchmark:

 '''The patch 2'''
 Time: 12.68 seconds, Memory: 122.25Mb
 OK (1 test, 19 assertions)

 '''The patch 3'''
 Time: 14.19 seconds, Memory: 122.25Mb
 OK (1 test, 197 assertions)

 As you can see you were right, just increase 1 second and half with almost
 two hundred assertions, running in an isolate mode.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35987#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list