Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Replaced tabs by spaces

  • Loading branch information...
commit 91f1752831381aeaad3032608f850df0d2654976 1 parent ad20d18
Simon Schick SimonSimCity authored
Showing with 38 additions and 38 deletions.
  1. +38 −38 tests/Doctrine/Tests/KeyValueStore/Storage/CouchbaseStorageTest.php
76 tests/Doctrine/Tests/KeyValueStore/Storage/CouchbaseStorageTest.php
View
@@ -11,41 +11,41 @@
*/
class CouchbaseStorageTest extends \PHPUnit_Framework_TestCase
{
- /**
- * @var \PHPUnit_Framework_MockObject_MockObject
- */
- private $couchbase;
+ /**
+ * @var \PHPUnit_Framework_MockObject_MockObject
+ */
+ private $couchbase;
- /**
- * @var CouchbaseStorage
- */
- private $storage;
+ /**
+ * @var CouchbaseStorage
+ */
+ private $storage;
protected function setUp()
{
- $this->couchbase = $this->getMockBuilder('\Couchbase')
- ->disableOriginalConstructor()
- ->getMock();
+ $this->couchbase = $this->getMockBuilder('\Couchbase')
+ ->disableOriginalConstructor()
+ ->getMock();
- $this->storage = new CouchbaseStorage($this->couchbase);
+ $this->storage = new CouchbaseStorage($this->couchbase);
}
- public function testSupportsPartialUpdates()
- {
- $this->assertFalse($this->storage->supportsPartialUpdates());
- }
+ public function testSupportsPartialUpdates()
+ {
+ $this->assertFalse($this->storage->supportsPartialUpdates());
+ }
- public function testSupportsCompositePrimaryKeys()
- {
- $this->assertFalse($this->storage->supportsCompositePrimaryKeys());
- }
+ public function testSupportsCompositePrimaryKeys()
+ {
+ $this->assertFalse($this->storage->supportsCompositePrimaryKeys());
+ }
- public function testRequiresCompositePrimaryKeys()
- {
- $this->assertFalse($this->storage->requiresCompositePrimaryKeys());
- }
+ public function testRequiresCompositePrimaryKeys()
+ {
+ $this->assertFalse($this->storage->requiresCompositePrimaryKeys());
+ }
- public function testInsert()
+ public function testInsert()
{
$data = array(
'author' => 'John Doe',
@@ -77,9 +77,9 @@ public function testUpdate()
$this->couchbase->expects($this->once())
->method('replace')
- ->will($this->returnCallback(function($key, $data) use (&$dbDataset) {
- $dbDataset[$key] = $data;
- }));
+ ->will($this->returnCallback(function($key, $data) use (&$dbDataset) {
+ $dbDataset[$key] = $data;
+ }));
$this->storage->update('', '1', $data);
@@ -90,9 +90,9 @@ public function testDelete()
{
$dataset = array(
'foobar' => array(
- 'author' => 'John Doe',
- 'title' => 'example book',
- ),
+ 'author' => 'John Doe',
+ 'title' => 'example book',
+ ),
);
$this->couchbase->expects($this->once())
@@ -115,18 +115,18 @@ public function testFind()
{
$dataset = array(
'foobar' => array(
- 'author' => 'John Doe',
- 'title' => 'example book',
- ),
+ 'author' => 'John Doe',
+ 'title' => 'example book',
+ ),
);
$this->couchbase->expects($this->once())
->method('get')
->will($this->returnCallback(function($key) use (&$dataset) {
- if (isset($dataset[$key])) {
- return $dataset[$key];
- }
- return null;
+ if (isset($dataset[$key])) {
+ return $dataset[$key];
+ }
+ return null;
}
));
Please sign in to comment.
Something went wrong with that request. Please try again.