From: Antoine Musso Date: Sat, 6 Nov 2010 22:43:55 +0000 (+0000) Subject: Test for r67549 (bug 23797) X-Git-Tag: 1.31.0-rc.0~34032 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=aee8eb0a6ef9be39438ca5adac2f8b398f7e9b2c;p=lhc%2Fweb%2Fwiklou.git Test for r67549 (bug 23797) --- diff --git a/maintenance/tests/phpunit/includes/XmlTest.php b/maintenance/tests/phpunit/includes/XmlTest.php index a91799c939..27be6bab9b 100644 --- a/maintenance/tests/phpunit/includes/XmlTest.php +++ b/maintenance/tests/phpunit/includes/XmlTest.php @@ -32,6 +32,13 @@ class XmlTest extends PHPUnit_Framework_TestCase { ); } + function testElementInputCanHaveAValueOfZero() { + $this->assertEquals( + '', + Xml::input( 'name', false, 0 ), + 'Input with a value of 0 (bug 23797)' + ); + } function testElementEscaping() { $this->assertEquals( 'hello <there> you & you',