Fixed: Not selecting a datalabel used to issue a notice(undefined offset)
[phpmyadmin/ammaryasirr.git] / test / classes / PMA_PDF_test.php
blob1f7931c3387b0b49dbd2ec12a8dee6a5200496bd
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * tests for PMA_PDF class
6 * @package phpMyAdmin-test
7 */
9 /*
10 * Include to test.
12 require_once 'libraries/common.lib.php';
13 require_once 'libraries/PDF.class.php';
14 require_once 'libraries/php-gettext/gettext.inc';
16 if (!defined('PMA_VERSION')) {
17 define('PMA_VERSION', 'TEST');
20 class PMA_PDF_test extends PHPUnit_Framework_TestCase
22 public function testBasic()
24 $arr = new PMA_PDF();
25 $this->assertContains('PDF', $arr->getPDFData());
28 public function testAlias()
30 $arr = new PMA_PDF();
31 $arr->SetAlias('{00}', '32');
32 $this->assertContains('PDF', $arr->getPDFData());