2 /* vim: expandtab sw=4 ts=4 sts=4: */
4 * tests for PMA_get_real_size()
7 * @package phpMyAdmin-test
13 require_once 'PHPUnit/Framework.php';
14 require_once './libraries/core.lib.php';
16 class PMA_get_real_size_test
extends PHPUnit_Framework_TestCase
18 public function testNull()
20 $this->assertEquals(0, PMA_get_real_size('0'));
23 public function testKilobyte()
25 $this->assertEquals(1024, PMA_get_real_size('1kb'));
28 public function testKilobyte2()
30 $this->assertEquals(1024 * 1024, PMA_get_real_size('1024k'));
33 public function testMegabyte()
35 $this->assertEquals(8 * 1024 * 1024, PMA_get_real_size('8m'));
38 public function testGigabyte()
40 $this->assertEquals(12 * 1024 * 1024 * 1024, PMA_get_real_size('12gb'));