public function test_simpler_time() { $testcases = array(1 => 1, 22 => 22, 33 => 33, 59 => 59, 60 => 60, 61 => 60, 89 => 60, 90 => 120, 91 => 120, 149 => 120, 150 => 180, 151 => 180, 1234567 => 1234560); foreach ($testcases as $input => $expected) { $actual = local::simpler_time($input); $this->assertSame($expected, $actual); } }