2 /* vim: set 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';
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'));