Remove unneeded "use" imports.

This commit is contained in:
Daniele Alessandri
2015-07-24 19:05:28 +02:00
parent c436e01353
commit 7282ca2b52
40 changed files with 78 additions and 149 deletions
+3 -4
View File
@@ -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));
}