public function testParseVMStat() { $tests = array('vmstat.yosemite.txt' => array('total' => 16503578624, 'free' => 1732366336)); $dir = dirname(__FILE__) . '/memory'; foreach ($tests as $input => $expect) { $raw = Filesystem::readFile($dir . '/' . $input); $actual = PhutilSystem::parseVMStat($raw); $this->assertEqual($expect, $actual, pht('Parse of "%s".', $input)); } }