- host:port
- redis://user:pass@host:port/db?option1=val1&option2=val2
- tcp://user:pass@host:port/db?option1=val1&option2=val2
- unix:///path/to/redis.sock
Note: the 'user' part of the DSN is not used.
/** * @dataProvider bogusDsnStringProvider * @expectedException InvalidArgumentException */ public function testParsingBogusDsnStringThrowsException($dsn) { // The next line should throw an InvalidArgumentException $result = Resque_Redis::parseDsn($dsn); }