Index: trunk/phase3/tests/phpunit/includes/media/SVGMetadataExtractorTest.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | */ |
20 | 20 | function testGetXMLMetadata( $infile, $expected ) { |
21 | 21 | $r = new XMLReader(); |
22 | | - if( !method_exists( $r, 'readInnerXML()' ) ) { |
| 22 | + if( !method_exists( $r, 'readInnerXML' ) ) { |
23 | 23 | $this->markTestSkipped( 'XMLReader::readInnerXML() does not exist (libxml >2.6.20 needed).' ); |
24 | 24 | return; |
25 | 25 | } |
Index: trunk/phase3/includes/media/SVGMetadataExtractor.php |
— | — | @@ -177,7 +177,7 @@ |
178 | 178 | return; |
179 | 179 | } |
180 | 180 | // TODO: find and store type of xml snippet. metadata['metadataType'] = "rdf" |
181 | | - if( method_exists( $this->reader, 'readInnerXML()' ) ) { |
| 181 | + if( method_exists( $this->reader, 'readInnerXML' ) ) { |
182 | 182 | $this->metadata[$metafield] = trim( $this->reader->readInnerXML() ); |
183 | 183 | } else { |
184 | 184 | throw new MWException( "The PHP XMLReader extension does not come with readInnerXML() method. Your libxml is probably out of date (need 2.6.20 or later)." ); |