Advisor: mark that 'Rate of reading fixed position' may be wrong, requires further...
[phpmyadmin/thilanka.git] / test / libraries / common / PMA_contains_nonprintable_ascii_test.php
bloba5c04c1839275d3d78ef9150661ea3bed0d566fc
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Test for PMA_contains_nonprintable_ascii from common.lib
6 * @package phpMyAdmin-test
7 * @version $Id: PMA_contains_nonprintable_ascii.php
8 * @group common.lib-tests
9 */
12 * Include to test.
14 require_once 'libraries/common.lib.php';
16 class PMA_contains_nonprintable_ascii extends PHPUnit_Framework_TestCase
19 function dataProvider(){
20 return array(
21 array("normal string", 0),
22 array("new\nline", 1),
23 array("tab\tspace", 1),
24 array("escape" . chr(27) . "char", 1),
25 array("chars%$\r\n",1),
29 /**
30 * @dataProvider dataProvider
32 function testContainsNonPrintableAscii($str, $res){
33 $this->assertEquals($res,PMA_contains_nonprintable_ascii($str));
38 // PMA_contains_nonprintable_ascii