Changeset 31052 for trunk/tests/phpunit/tests/functions.php
- Timestamp:
- 01/05/2015 01:12:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions.php
r30561 r31052 40 40 } 41 41 function test_size_format() { 42 $b = 1; 42 43 $kb = 1024; 43 44 $mb = $kb*1024; … … 48 49 $this->assertEquals('1 MB', size_format($mb, 0)); 49 50 $this->assertEquals('1 kB', size_format($kb, 0)); 51 $this->assertEquals('1 B', size_format($b, 0)); 50 52 // now some values around 51 53 // add some bytes to make sure the result isn't 1.4999999
Note: See TracChangeset
for help on using the changeset viewer.