Page MenuHomePhabricator

IPTCTest::testIPTCParseForcedUTFButInvalid failure in iptcparse()
Closed, DuplicatePublic

Description

Getting this failure on a Gentoo Linux box

Original report: https://lists.wikimedia.org/pipermail/wikitech-l/2015-October/083675.html

1#!/usr/bin/env php
2Using PHPUnit from /usr/share/php/phpunit/phpunit.phar
3PHPUnit 4.3.1 by Sebastian Bergmann.
4
5Configuration read from /usr/home/saper/public_html/ybabel/tests/phpunit/suite.xml
6
7............................................................... 63 / 267 ( 23%)
8................................F.............................. 126 / 267 ( 47%)
9............................................................... 189 / 267 ( 70%)
10......................................................R........ 252 / 267 ( 94%)
11...............
12
13Time: 5.74 seconds, Memory: 46.75Mb
14
15There was 1 failure:
16
171) IPTCTest::testIPTCParseForcedUTFButInvalid
18Failed asserting that two arrays are equal.
19--- Expected
20+++ Actual
21@@ @@
22 Array (
23- 0 => 'ø'
24+ 0 => ''
25 )
26
27/usr/home/saper/public_html/ybabel/tests/phpunit/includes/media/IPTCTest.php:50
28/usr/home/saper/public_html/ybabel/tests/phpunit/MediaWikiTestCase.php:137
29
30--
31
32There was 1 risky test:
33
341) XMPTest::testExtendedXMP
35Test method is annotated with @todo
36
37/usr/home/saper/public_html/ybabel/tests/phpunit/MediaWikiTestCase.php:137
38
39FAILURES!
40Tests: 267, Assertions: 385, Failures: 1.

`
 $d = iconv( "SEN_850200_B", "UTF-8//IGNORE", "ÃÃø" );
`

returns false here.

Related Objects