public function testStandardiseMixedArray() { $original = ['foo', 'bar' => 'foo']; $standardised = Helper::standardiseQueryArgs($original); $expected = ['foo' => '', 'bar' => 'foo']; $this->assertEquals($expected, $standardised); }
/** * @param array $arguments * @return array */ protected function processQueryArguments(array $arguments = []) { $arguments = Helper::standardiseQueryArgs($arguments); return $arguments; }