[wp-trac] [WordPress Trac] #52922: `WP_Test_Stream` : Add seeking capability for testing streams

WordPress Trac noreply at wordpress.org
Fri Mar 26 13:38:55 UTC 2021


#52922: `WP_Test_Stream` : Add seeking capability for testing streams
------------------------------+------------------------------------------
 Reporter:  hellofromTonya    |      Owner:  (none)
     Type:  enhancement       |     Status:  assigned
 Priority:  normal            |  Milestone:  5.8
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch needs-unit-tests
  Focuses:                    |
------------------------------+------------------------------------------
 Propose adding seeking capability to the `WP_Test_Stream` in-memory
 streamWrapper.

 Seeking is required for automated testing of Media streams for functions
 such as

 - `getimagesize` (used in `wp_getimagesize`)
 - `exif_read_data` (used in `wp_read_image_metadata`)

 For example, #52826 notes an issue with streams; however, integration
 tests are blocked due to `WP_Test_Stream` not supporting seeking.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52922>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list