Translation update done using Pootle.
[phpmyadmin/gandalfml.git] / test / PMA_printableBitValue_test.php
blob9351eb8087e19727c01404ce94e717a66af541c1
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Test printableBitValue function
6 * @package phpMyAdmin-test
7 * @version $Id: PMA_printableBitValue_test.php
8 */
10 /**
11 * Tests core.
13 require_once 'PHPUnit/Framework.php';
15 /**
16 * Include to test.
18 require_once './libraries/common.lib.php';
20 /**
21 * Test printableBitValue function.
24 class PMA_printableBitValue_test extends PHPUnit_Framework_TestCase
27 /**
28 * data provider for printable bit value test
31 public function printableBitValueDataProvider() {
32 return array(
33 array('testtest', 64, '0111010001100101011100110111010001110100011001010111001101110100'),
34 array('test', 32, '01110100011001010111001101110100')
38 /**
39 * test for generating string contains printable bit value of selected data
40 * @dataProvider printableBitValueDataProvider
43 public function testPrintableBitValue($a, $b, $e) {
44 $this->assertEquals($e, PMA_printable_bit_value($a, $b));