private static function initCounter() { if (is_null(self::$counter)) { self::$counter = new UglyCounter(); } else { self::$counter->count = 0; } }
/** * @dataProvider known_solutions */ public function test_uglyNumbers($input, $expectedOutput) { $this->assertEquals($expectedOutput, UglyNumbers::solve($input)); }