mirror of
https://github.com/idanoo/php-resque
synced 2025-07-01 05:32:20 +00:00
Make parseDsn() method static, remove unused member vars
This commit is contained in:
parent
62ed620083
commit
506b769b90
3 changed files with 33 additions and 46 deletions
|
@ -159,8 +159,7 @@ class Resque_Tests_DsnTest extends Resque_Tests_TestCase
|
|||
*/
|
||||
public function testParsingValidDsnString($dsn, $expected)
|
||||
{
|
||||
$resqueRedis = new Resque_Redis('localhost');
|
||||
$result = $resqueRedis->parseDsn($dsn);
|
||||
$result = Resque_Redis::parseDsn($dsn);
|
||||
$this->assertEquals($expected, $result);
|
||||
}
|
||||
|
||||
|
@ -170,9 +169,8 @@ class Resque_Tests_DsnTest extends Resque_Tests_TestCase
|
|||
*/
|
||||
public function testParsingBogusDsnStringThrowsException($dsn)
|
||||
{
|
||||
$resqueRedis = new Resque_Redis('localhost');
|
||||
// The next line should throw an InvalidArgumentException
|
||||
$result = $resqueRedis->parseDsn($dsn);
|
||||
$result = Resque_Redis::parseDsn($dsn);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue