Translation update done using Pootle.
[phpmyadmin/ammaryasirr.git] / test / libraries / common / PMA_printableBitValue_test.php
blobd211981d6762efe5fd3f2db8a6ae706dbfd8b56a
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 * @group common.lib-tests
9 */
12 * Include to test.
14 require_once 'libraries/common.lib.php';
16 class PMA_printableBitValue_test extends PHPUnit_Framework_TestCase
19 /**
20 * data provider for printable bit value test
23 public function printableBitValueDataProvider() {
24 return array(
25 array('testtest', 64, '0111010001100101011100110111010001110100011001010111001101110100'),
26 array('test', 32, '01110100011001010111001101110100')
30 /**
31 * test for generating string contains printable bit value of selected data
32 * @dataProvider printableBitValueDataProvider
35 public function testPrintableBitValue($a, $b, $e) {
36 $this->assertEquals($e, PMA_printable_bit_value($a, $b));