2 /* vim: set expandtab sw=4 ts=4 sts=4: */
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
14 require_once 'libraries/common.lib.php';
16 class PMA_contains_nonprintable_ascii
extends PHPUnit_Framework_TestCase
19 function dataProvider(){
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),
30 * @dataProvider dataProvider
32 function testContainsNonPrintableAscii($str, $res){
33 $this->assertEquals($res,PMA_contains_nonprintable_ascii($str));
38 // PMA_contains_nonprintable_ascii