Changeset 975 in tests for trunk/tests/ajax/Response.php
- Timestamp:
- 08/20/2012 06:15:05 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/ajax/Response.php
r972 r975 1 1 <?php 2 3 2 /** 4 3 * Testing ajax response class … … 63 62 * Note: headers_list doesn't work properly in CLI mode, fall back on 64 63 * xdebug_get_headers if it's available 64 * Needs a separate process to get around the headers/output from the 65 * bootstrapper 65 66 * @ticket 19448 67 * @runInSeparateProcess 66 68 */ 67 69 public function test_response_charset_in_header() { … … 70 72 $this->markTestSkipped( 'xdebug is required for this test' ); 71 73 } 72 74 73 75 // Generate an ajax response 74 76 ob_start(); … … 79 81 $headers = xdebug_get_headers(); 80 82 ob_end_clean(); 83 81 84 $this->assertTrue( in_array( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ), $headers ) ); 82 85 }
Note: See TracChangeset
for help on using the changeset viewer.