testDecodeTagAttributes now use a data provider
authorAntoine Musso <hashar@free.fr>
Thu, 22 Nov 2012 10:25:30 +0000 (11:25 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 18 Jan 2013 13:47:38 +0000 (13:47 +0000)
commit8099133ab3c0698c1f3fc8eaca24a02b9ab55c7f
tree94bae7877c943f19cda153ffe57cf25ceccc03c0
parent2b3714db26c598aa3ded330ac0132472a233e71e
testDecodeTagAttributes now use a data provider

We had a huge pile of assertEquals in a single test function, this patch
convert the mess in a nicer dataprovider.

The parameters passed to assertEquals() were mixed up, the expected
values should be passed as the first argument, I thus exchange the first
two parameters in each case.

Change-Id: Ib74804a7aa84a1e59fffb8c85abbf0b95995d897
tests/phpunit/includes/SanitizerTest.php