public function testCleanArray() { $input = array('a', 'b', 'c', 'd' => 'four', 'e' => 5, 'f' => null, 'g' => false, 'h' => true, 'i' => '', 'j' => 0, 'k' => '"'); $expect = array('a', 'b', 'c', 'd' => 'four', 'e' => 5, 'h' => true, 'j' => 0, 'k' => '"'); $result = Re::cleanArray(Re::cleanArray($input)); $this->assertEquals($result, $expect); $result = Re::cleanArray(Re::cleanArray($result)); $this->assertEquals($result, $expect); }