X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=ut%2Fuserfiltertest.php;h=dcf3f3e2130f81061b1ace7a452dc7e820b998fd;hb=aba1be6d494fe4a205f00bab1c880d5ee8246565;hp=d2bc062aa76141d3a5674720d255ce74823e1bcd;hpb=7c9474af23ed44f6cfddcb5b8dd970a5893aa0d9;p=platal.git diff --git a/ut/userfiltertest.php b/ut/userfiltertest.php index d2bc062..dcf3f3e 100644 --- a/ut/userfiltertest.php +++ b/ut/userfiltertest.php @@ -1,6 +1,6 @@ {?}', '2008-01-01'), @@ -462,7 +459,7 @@ class UserFilterTest extends PlTestCase /* UFC_Registered */ - $tests[] = array( + $tests['register'] = array( array(self::buildAccountQuery('WHERE a.uid IS NOT NULL AND a.state = \'active\''), new UFC_Registered(true), -1), array(self::buildAccountQuery('WHERE a.uid IS NOT NULL AND a.state != \'pending\''), @@ -482,8 +479,10 @@ class UserFilterTest extends PlTestCase ); $testcases = array(); - foreach ($tests as $t) { - $testcases = array_merge($testcases, $t); + foreach ($tests as $name => $t) { + foreach ($t as $id => $case) { + $testcases[$name . '-' . $id] = $case; + } } return $testcases; }