Translation update done using Pootle.
[phpmyadmin-themes.git] / test / PMA_get_real_size_test.php
blob14d2a61feeb88ab6d6d08c43420110d0b1bf58d1
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * tests for PMA_get_real_size()
6 * @package phpMyAdmin-test
7 */
9 /**
12 require_once 'PHPUnit/Framework.php';
13 require_once './libraries/core.lib.php';
15 /**
16 * @package phpMyAdmin-test
18 class PMA_get_real_size_test extends PHPUnit_Framework_TestCase
20 public function testNull()
22 $this->assertEquals(0, PMA_get_real_size('0'));
25 public function testKilobyte()
27 $this->assertEquals(1024, PMA_get_real_size('1kb'));
30 public function testKilobyte2()
32 $this->assertEquals(1024 * 1024, PMA_get_real_size('1024k'));
35 public function testMegabyte()
37 $this->assertEquals(8 * 1024 * 1024, PMA_get_real_size('8m'));
40 public function testGigabyte()
42 $this->assertEquals(12 * 1024 * 1024 * 1024, PMA_get_real_size('12gb'));