mirror of
https://github.com/predis/predis.git
synced 2026-10-08 21:06:44 +00:00
Remove unneeded "use" imports.
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace Predis;
|
||||
|
||||
use ReflectionProperty;
|
||||
use PredisTestCase;
|
||||
|
||||
/**
|
||||
@@ -688,7 +687,7 @@ class ClientTest extends PredisTestCase
|
||||
|
||||
$this->assertInstanceOf('Predis\PubSub\Consumer', $pubsub = $client->pubSubLoop($options));
|
||||
|
||||
$reflection = new ReflectionProperty($pubsub, 'options');
|
||||
$reflection = new \ReflectionProperty($pubsub, 'options');
|
||||
$reflection->setAccessible(true);
|
||||
|
||||
$this->assertSame($options, $reflection->getValue($pubsub));
|
||||
@@ -741,11 +740,11 @@ class ClientTest extends PredisTestCase
|
||||
$this->assertInstanceOf('Predis\Transaction\MultiExec', $tx = $client->transaction($options));
|
||||
|
||||
// I hate this part but reflection is the easiest way in this case.
|
||||
$property = new ReflectionProperty($tx, 'modeCAS');
|
||||
$property = new \ReflectionProperty($tx, 'modeCAS');
|
||||
$property->setAccessible(true);
|
||||
$this->assertSame($options['cas'], $property->getValue($tx));
|
||||
|
||||
$property = new ReflectionProperty($tx, 'attempts');
|
||||
$property = new \ReflectionProperty($tx, 'attempts');
|
||||
$property->setAccessible(true);
|
||||
$this->assertSame($options['retry'], $property->getValue($tx));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user