2.11.6
[phpmyadmin/arisferyanto.git] / test / PMA_get_real_size_test.php
blob4f618b2c5be0c152b4802b419fe1ce313c19993a
1 <?php
2 /* vim: 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 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'));