/** * @dataProvider bogusDsnStringProvider * @expectedException InvalidArgumentException */ public function testParsingBogusDsnStringThrowsException($dsn) { // The next line should throw an InvalidArgumentException $result = Resque_Redis::parseDsn($dsn); }