* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ class phpbb_functions_validate_data_helper { protected $test_case; public function __construct($test_case) { $this->test_case = $test_case; } /** * Test provided input data with supplied checks and compare to expected * results * * @param array $data Array containing one or more subarrays with the * test data. The first element of a subarray is the * expected result, the second one is the input, and the * third is the data that should be passed to the function * validate_data(). */ public function assert_valid_data($data) { foreach ($data as $key => $test) { $this->test_case->assertEquals($test[0], validate_data(array($test[1]), array($test[2]))); } } } s='sub right'>Frédéric "LpSolit" Buclin [lpsolit]
aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-05-02 12:36:27 +0000
committerlpsolit%gmail.com <>2008-05-02 12:36:27 +0000
commita0ff879d4f771a39e4c25485c1dc6b83be484244 (patch)
treec4ab9009602095b115aab63e068afe1c90d8c21e /Bugzilla/Bug.pm
parent35e40627afb0675c23816b040baca7541387c269 (diff)
downloadbugs-a0ff879d4f771a39e4c25485c1dc6b83be484244.tar
bugs-a0ff879d4f771a39e4c25485c1dc6b83be484244.tar.gz
bugs-a0ff879d4f771a39e4c25485c1dc6b83be484244.tar.bz2
bugs-a0ff879d4f771a39e4c25485c1dc6b83be484244.tar.xz
bugs-a0ff879d4f771a39e4c25485c1dc6b83be484244.zip
Bug 431730: Bugs with resolution MOVED cannot be edited anymore - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat