ParserTests: fix `bits` column in uploaded images for test cases.
authorC. Scott Ananian <cscott@cscott.net>
Tue, 3 Jun 2014 19:44:53 +0000 (15:44 -0400)
committerCscott <cananian@wikimedia.org>
Tue, 3 Jun 2014 21:49:40 +0000 (21:49 +0000)
commitdece73dff9f8f4100865faa68bc3070ffec6e269
treeeea6bb28c878e91d88d29549b3b93e21f4b34b40
parente0abad4054ea08925e5cbf21ecfcea838e897347
ParserTests: fix `bits` column in uploaded images for test cases.

When running parser tests on a sqlite3 database, the insertion of the
djvu image before running the test suite will fail because `NULL` is not
a valid value for the `bits` column of the `image` table.  This will
cause the test suite to eventually fail, since {{NUMBEROFFILES}} differs.

Test uploads show that `bits` is usually set to 0 for both SVG and
DJVU uploads, so fix this (in both the standalone test runner and the
phpunit test runner).

Change-Id: I8689a547d34035534723e87c4c2680c4e67245f2
tests/parser/parserTest.inc
tests/phpunit/includes/parser/NewParserTest.php