Index: trunk/phase3/tests/phpunit/includes/media/SVGMetadataExtractorTest.php |
— | — | @@ -67,18 +67,20 @@ |
68 | 68 | |
69 | 69 | function providerSvgFilesWithXMLMetadata() { |
70 | 70 | $base = dirname( __FILE__ ) . '/../../data/media'; |
| 71 | + $metadata = |
| 72 | + '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
| 73 | + <ns4:Work xmlns:ns4="http://creativecommons.org/ns#" rdf:about=""> |
| 74 | + <ns5:format xmlns:ns5="http://purl.org/dc/elements/1.1/">image/svg+xml</ns5:format> |
| 75 | + <ns5:type xmlns:ns5="http://purl.org/dc/elements/1.1/" rdf:resource="http://purl.org/dc/dcmitype/StillImage"/> |
| 76 | + </ns4:Work> |
| 77 | + </rdf:RDF>'; |
| 78 | + $metadata = str_replace( "\r", '', $metadata ); // Windows compat |
71 | 79 | return array( |
72 | 80 | array( |
73 | 81 | "$base/US_states_by_total_state_tax_revenue.svg", |
74 | 82 | array( |
75 | 83 | 'height' => 593, |
76 | | - 'metadata' => |
77 | | - '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
78 | | - <ns4:Work xmlns:ns4="http://creativecommons.org/ns#" rdf:about=""> |
79 | | - <ns5:format xmlns:ns5="http://purl.org/dc/elements/1.1/">image/svg+xml</ns5:format> |
80 | | - <ns5:type xmlns:ns5="http://purl.org/dc/elements/1.1/" rdf:resource="http://purl.org/dc/dcmitype/StillImage"/> |
81 | | - </ns4:Work> |
82 | | - </rdf:RDF>', |
| 84 | + 'metadata' => $metadata, |
83 | 85 | 'width' => 959 |
84 | 86 | ) |
85 | 87 | ), |
Index: trunk/phase3/tests/phpunit/includes/media/GIFMetadataExtractorTest.php |
— | — | @@ -63,6 +63,7 @@ |
64 | 64 | |
65 | 65 | <?xpacket end='w'?> |
66 | 66 | EOF; |
| 67 | + $xmpNugget = str_replace( "\r", '', $xmpNugget ); // Windows compat |
67 | 68 | |
68 | 69 | return array( |
69 | 70 | array( 'nonanimated.gif', array( |