The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit c9460666 authored by David Maus's avatar David Maus
Browse files

Add test isAssocParams w/ mixed array

parent cacba4b2
No related merge requests found
...@@ -222,4 +222,17 @@ class ProxyServiceTest extends \PHPUnit_Framework_TestCase ...@@ -222,4 +222,17 @@ class ProxyServiceTest extends \PHPUnit_Framework_TestCase
$service->get('http://example.tld'); $service->get('http://example.tld');
} }
/**
* Test isAssocArray with mixed keys.
*
* @return void
*/
public function testIsAssocArrayWithMixedKeys ()
{
$arr = array();
$arr[] = 'foo';
$arr['foo'] = 'bar';
$this->assertTrue(Service::isAssocParams($arr));
}
} }
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment