remove todo, after upgrade PHPExcel
[phpmyadmin/arisferyanto.git] / test / PMA_printableBitValue_test.php
blob86207789b428d11c88c5c9242b7e36da75284e17
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Test printableBitValue function
6 * @author Michal Biniek <michal@bystrzyca.pl>
7 * @package phpMyAdmin-test
8 * @version $Id: PMA_printableBitValue_test.php
9 */
11 /**
12 * Tests core.
14 require_once 'PHPUnit/Framework.php';
16 /**
17 * Include to test.
19 require_once './libraries/common.lib.php';
21 /**
22 * Test printableBitValue function.
25 class PMA_printableBitValue_test extends PHPUnit_Framework_TestCase
28 /**
29 * data provider for printable bit value test
32 public function printableBitValueDataProvider() {
33 return array(
34 array('testtest', 64, '0111010001100101011100110111010001110100011001010111001101110100'),
35 array('test', 32, '01110100011001010111001101110100')
39 /**
40 * test for generating string contains printable bit value of selected data
41 * @dataProvider printableBitValueDataProvider
44 public function testPrintableBitValue($a, $b, $e) {
45 $this->assertEquals($e, PMA_printable_bit_value($a, $b));