Fix return array format of bogusDsnStringProvider

This commit is contained in:
Iskandar Najmuddin 2014-05-05 15:29:52 +00:00
parent b0385d2959
commit 76412df8fd

View File

@ -53,6 +53,13 @@ class Resque_Tests_DsnTest extends Resque_Tests_TestCase
false, false, false, false,
array(), array(),
)), )),
array('redis://foobar/', array(
'foobar',
Resque_Redis::DEFAULT_PORT,
false,
false, false,
array(),
)),
array('redis://foobar:1234', array( array('redis://foobar:1234', array(
'foobar', 'foobar',
1234, 1234,
@ -147,10 +154,9 @@ class Resque_Tests_DsnTest extends Resque_Tests_TestCase
public function bogusDsnStringProvider() public function bogusDsnStringProvider()
{ {
return array( return array(
'http://foo.bar/', array('http://foo.bar/'),
'://foo.bar/', array('user:@foobar:1234?x=y&a=b'),
'user:@foobar:1234?x=y&a=b', array('foobar:1234?x=y&a=b'),
'foobar:1234?x=y&a=b',
); );
} }