[wp-trac] [WordPress Trac] #65136: Unit Tests: Add tests for extract_from_markers()

WordPress Trac noreply at wordpress.org
Mon Apr 27 18:12:13 UTC 2026


#65136: Unit Tests: Add tests for extract_from_markers()
----------------------------+-----------------------------
 Reporter:  pbearne         |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 The function extract_from_markers() in src/wp-admin/includes/misc.php
 lacks unit tests. This PR adds tests to ensure it correctly extracts
 content between markers in a file, handling missing files, different
 markers, and comments.

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


More information about the wp-trac mailing list