4 require_once(
"./libs/composer/vendor/autoload.php");
21 $this->assertEquals($a / $b, $ds->getSize());
22 $this->assertEquals($b, $ds->getUnit());
23 $this->assertEquals($expected, $ds->__toString());
30 $this->assertFalse(
"This should not happen");
32 $this->assertTrue(
true);
38 return array(array(122, 1000,
"0.122 KB"),
39 array(-122, 1000,
"-0.122 KB"),
40 array(122, 1000000,
"0.000122 MB"),
41 array(-122, 1000000,
"-0.000122 MB"),
42 array(122, 1000000000,
"1.22E-7 GB"),
43 array(-122, 1000000000,
"-1.22E-7 GB"),
44 array(122, 1000000000000,
"1.22E-10 TB"),
45 array(-122, 1000000000000,
"-1.22E-10 TB"),
46 array(122, 1000000000000000,
"1.22E-13 PB"),
47 array(-122, 1000000000000000,
"-1.22E-13 PB"),
48 array(122, 1000000000000000000,
"1.22E-16 EB"),
49 array(-122, 1000000000000000000,
"-1.22E-16 EB"),
58 array(122, 1024,
"0.119140625 KiB"),
59 array(-122, 1024,
"-0.119140625 KiB"),
60 array(122, 1048576,
"0.00011634826660156 MiB"),
61 array(-122, 1048576,
"-0.00011634826660156 MiB"),
62 array(122, 1073741824,
"1.1362135410309E-7 GiB"),
63 array(-122, 1073741824,
"-1.1362135410309E-7 GiB"),
64 array(122, 1099511627776,
"1.109583536163E-10 TiB"),
65 array(-122, 1099511627776,
"-1.109583536163E-10 TiB"),
66 array(122, 1125899906842624,
"1.0835776720342E-13 PiB"),
67 array(-122, 1125899906842624,
"-1.0835776720342E-13 PiB"),
68 array(122, 1152921504606846976,
"1.0581813203459E-16 EiB"),
69 array(-122, 1152921504606846976,
"-1.0581813203459E-16 EiB")
Exercise XML Parser which completes/updates a given file by an xml string.
test_normal($a, $b, $expected)
tDataProvider
Testing the DataSize object.