Enhancement: Allow XmlTypeCheck for strings
authorphysikerwelt <wiki@physikerwelt.de>
Sun, 2 Jun 2013 17:24:32 +0000 (17:24 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 7 Jun 2013 18:11:49 +0000 (18:11 +0000)
commitc6b37dbee57263303ddaae9c40e7c61084588735
tree0752c3e92dd8c6b9bd4375d2a7b200ec1532b2d7
parent1fcf985c7634de0f18ba1fd9884b43c23d3010cb
Enhancement: Allow XmlTypeCheck for strings

This change allows that the class XmlTypeCheck can be used to
check strings as well as files. Therefore the constructor has
been extended to one further element that indicates if the
input to be checked is a file or a string.

The functionality is tested with php unit tests.

Change-Id: I7432a754a512e0324c171667c3eac9d8e7838e0e
includes/XmlTypeCheck.php
tests/phpunit/includes/XmlTypeCheckTest.php [new file with mode: 0644]