undefined variables
[phpmyadmin/crack.git] / test / PMA_get_real_size_test.php
blobbaad230eb7b64c49577d9cdb686315f974481ed4
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * tests for PMA_get_real_size()
6 * @version $Id$
7 * @package phpMyAdmin-test
8 */
10 /**
13 require_once 'PHPUnit/Framework.php';
14 require_once './libraries/core.lib.php';
16 /**
17 * @package phpMyAdmin-test
19 class PMA_get_real_size_test extends PHPUnit_Framework_TestCase
21 public function testNull()
23 $this->assertEquals(0, PMA_get_real_size('0'));
26 public function testKilobyte()
28 $this->assertEquals(1024, PMA_get_real_size('1kb'));
31 public function testKilobyte2()
33 $this->assertEquals(1024 * 1024, PMA_get_real_size('1024k'));
36 public function testMegabyte()
38 $this->assertEquals(8 * 1024 * 1024, PMA_get_real_size('8m'));
41 public function testGigabyte()
43 $this->assertEquals(12 * 1024 * 1024 * 1024, PMA_get_real_size('12gb'));