From 037bb74827be2d68f954146fdbb2a840a9cf8693 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 3 Jan 2012 21:12:24 +0000 Subject: [PATCH] PHPUnit test case for bug 31719 (followup r107793) --- tests/phpunit/data/media/Toll_Texas_1.svg | 150 ++++++++++++++++++ .../media/SVGMetadataExtractorTest.php | 8 + 2 files changed, 158 insertions(+) create mode 100644 tests/phpunit/data/media/Toll_Texas_1.svg diff --git a/tests/phpunit/data/media/Toll_Texas_1.svg b/tests/phpunit/data/media/Toll_Texas_1.svg new file mode 100644 index 0000000000..87d60b2525 --- /dev/null +++ b/tests/phpunit/data/media/Toll_Texas_1.svg @@ -0,0 +1,150 @@ + + + + +]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/phpunit/includes/media/SVGMetadataExtractorTest.php b/tests/phpunit/includes/media/SVGMetadataExtractorTest.php index d07ba4054f..526beae81b 100644 --- a/tests/phpunit/includes/media/SVGMetadataExtractorTest.php +++ b/tests/phpunit/includes/media/SVGMetadataExtractorTest.php @@ -62,6 +62,14 @@ class SVGMetadataExtractorTest extends MediaWikiTestCase { 'height' => 60 ) ), + array( + "$base/Toll_Texas_1.svg", + // This file triggered bug 31719, needs entity expansion in the xmlns checks + array( + 'width' => 385, + 'height' => 385 + ) + ) ); } -- 2.20.1