Skip to content

Commit 2fc0d23

Browse files
committed
PSR formatting in tests
1 parent 49bf9ec commit 2fc0d23

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

tests/BatchTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public function testCreateMixedBatchWithPartIds()
281281
$collection->setName($name);
282282

283283
$batch->nextBatchPartId('testCollection1');
284-
$response = $collectionHandler->create($collection);
284+
$response = $collectionHandler->create($collection);
285285

286286
static::assertTrue(is_numeric($response), 'Did not return a fake numeric id!');
287287
$batch->process();
@@ -307,7 +307,7 @@ public function testCreateMixedBatchWithPartIds()
307307
$document = Document::createFromArray(
308308
['someAttribute' => 'someValue', 'someOtherAttribute' => 'someOtherValue']
309309
);
310-
$documentBatchPart = $documentHandler->save($resultingCollectionId, $document);
310+
$documentBatchPart = $documentHandler->save($resultingCollectionId, $document);
311311

312312
static::assertEquals($documentBatchPart->getType(), 'document');
313313

tests/CollectionBasicTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,8 @@ public function testCreateSparseSkipListIndex()
692692
static::assertTrue($indexInfo[CollectionHandler::OPTION_SPARSE], 'sparse flag was not set to true!');
693693
}
694694
}
695-
696-
695+
696+
697697
/**
698698
* Create a persistent index and verify it by getting information about the index from the server
699699
*/

tests/CollectionExtendedTest.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ public function testCreateGetAndDeleteCollectionThroughCreateFromArrayWithWaitFo
440440
$collection = Collection::createFromArray(
441441
['name' => 'ArangoDB_PHP_TestSuite_TestCollection_01', 'waitForSync' => true]
442442
);
443-
$response = $collectionHandler->create($collection);
443+
$response = $collectionHandler->create($collection);
444444

445445
$collectionHandler->get($response);
446446

@@ -467,7 +467,7 @@ public function testRemoveByKeys()
467467
$document = Document::createFromArray(
468468
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
469469
);
470-
$documentId = $documentHandler->save($collection->getId(), $document);
470+
$documentId = $documentHandler->save($collection->getId(), $document);
471471
$document2 = Document::createFromArray(
472472
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
473473
);
@@ -516,7 +516,7 @@ public function testRemoveByKeysNotFound()
516516
$document = Document::createFromArray(
517517
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
518518
);
519-
$documentId = $documentHandler->save($collection->getId(), $document);
519+
$documentId = $documentHandler->save($collection->getId(), $document);
520520
$document2 = Document::createFromArray(
521521
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
522522
);
@@ -551,7 +551,7 @@ public function testCreateDocumentsAndRemoveByExampleEmptyExample()
551551
$document = Document::createFromArray(
552552
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
553553
);
554-
$documentId = $documentHandler->save($collection->getId(), $document);
554+
$documentId = $documentHandler->save($collection->getId(), $document);
555555
$document2 = Document::createFromArray(
556556
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
557557
);
@@ -585,7 +585,7 @@ public function testCreateDocumentsAndUpdateByExampleEmptyExample()
585585
$document = Document::createFromArray(
586586
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
587587
);
588-
$documentId = $documentHandler->save($collection->getId(), $document);
588+
$documentId = $documentHandler->save($collection->getId(), $document);
589589
$document2 = Document::createFromArray(
590590
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
591591
);
@@ -619,7 +619,7 @@ public function testCreateDocumentsAndUpdateByExampleEmptyUpdateExample()
619619
$document = Document::createFromArray(
620620
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
621621
);
622-
$documentId = $documentHandler->save($collection->getId(), $document);
622+
$documentId = $documentHandler->save($collection->getId(), $document);
623623
$document2 = Document::createFromArray(
624624
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
625625
);
@@ -653,7 +653,7 @@ public function testCreateDocumentsAndReplaceByExampleEmptyExample()
653653
$document = Document::createFromArray(
654654
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
655655
);
656-
$documentId = $documentHandler->save($collection->getId(), $document);
656+
$documentId = $documentHandler->save($collection->getId(), $document);
657657
$document2 = Document::createFromArray(
658658
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
659659
);
@@ -686,7 +686,7 @@ public function testCreateDocumentsAndReplaceByExampleEmptyReplaceExample()
686686
$document = Document::createFromArray(
687687
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
688688
);
689-
$documentId = $documentHandler->save($collection->getId(), $document);
689+
$documentId = $documentHandler->save($collection->getId(), $document);
690690
$document2 = Document::createFromArray(
691691
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
692692
);
@@ -720,7 +720,7 @@ public function testCreateDocumentsAndQueryByExampleEmptyExample()
720720
$document = Document::createFromArray(
721721
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
722722
);
723-
$documentId = $documentHandler->save($collection->getId(), $document);
723+
$documentId = $documentHandler->save($collection->getId(), $document);
724724
$document2 = Document::createFromArray(
725725
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
726726
);
@@ -756,7 +756,7 @@ public function testCreateDocumentsWithCreateFromArrayAndRemoveByExample()
756756
$document = Document::createFromArray(
757757
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
758758
);
759-
$documentId = $documentHandler->save($collection->getId(), $document);
759+
$documentId = $documentHandler->save($collection->getId(), $document);
760760
$document2 = Document::createFromArray(
761761
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
762762
);
@@ -792,7 +792,7 @@ public function testCreateDocumentsWithCreateFromArrayUpdateReplaceAndRemoveByEx
792792
$document = Document::createFromArray(
793793
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
794794
);
795-
$documentId = $documentHandler->save($collection->getId(), $document);
795+
$documentId = $documentHandler->save($collection->getId(), $document);
796796
$document2 = Document::createFromArray(
797797
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
798798
);
@@ -906,7 +906,7 @@ public function testCreateDocumentsWithCreateFromArrayUpdateReplaceAndRemoveByEx
906906
$document = Document::createFromArray(
907907
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
908908
);
909-
$documentId = $documentHandler->save($collection->getId(), $document);
909+
$documentId = $documentHandler->save($collection->getId(), $document);
910910
$document2 = Document::createFromArray(
911911
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
912912
);
@@ -972,7 +972,7 @@ public function testCreateDocumentsWithCreateFromArrayUpdateReplaceAndRemoveByEx
972972
$document = Document::createFromArray(
973973
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
974974
);
975-
$documentId = $documentHandler->save($collection->getId(), $document);
975+
$documentId = $documentHandler->save($collection->getId(), $document);
976976
$document2 = Document::createFromArray(
977977
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
978978
);
@@ -1038,7 +1038,7 @@ public function testCreateDocumentsWithCreateFromArrayUpdateReplaceAndRemoveByEx
10381038
$document = Document::createFromArray(
10391039
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
10401040
);
1041-
$documentId = $documentHandler->save($collection->getId(), $document);
1041+
$documentId = $documentHandler->save($collection->getId(), $document);
10421042
$document2 = Document::createFromArray(
10431043
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
10441044
);
@@ -1098,7 +1098,7 @@ public function testCreateDocumentsWithCreateFromArrayAndRemoveByExampleWithLimi
10981098
$document = Document::createFromArray(
10991099
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
11001100
);
1101-
$documentId = $documentHandler->save($collection->getId(), $document);
1101+
$documentId = $documentHandler->save($collection->getId(), $document);
11021102
$document2 = Document::createFromArray(
11031103
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
11041104
);
@@ -2574,7 +2574,7 @@ public function testLookupByKeys()
25742574
$document = Document::createFromArray(
25752575
['someAttribute' => 'someValue1', 'someOtherAttribute' => 'someOtherValue']
25762576
);
2577-
$documentId = $documentHandler->save($collection->getId(), $document);
2577+
$documentId = $documentHandler->save($collection->getId(), $document);
25782578
$document2 = Document::createFromArray(
25792579
['someAttribute' => 'someValue2', 'someOtherAttribute' => 'someOtherValue2']
25802580
);

tests/TraversalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function setUp()
120120
$this->vertexCollectionName = 'ArangoDBPHPTestSuiteVertexTestCollection01';
121121
$this->edgeCollectionName = 'ArangoDBPHPTestSuiteTestEdgeCollection01';
122122

123-
$ed1 = EdgeDefinition::createUndirectedRelation($this->edgeCollectionName, [$this->vertexCollectionName]);
123+
$ed1 = EdgeDefinition::createUndirectedRelation($this->edgeCollectionName, [$this->vertexCollectionName]);
124124

125125
$this->graph->addEdgeDefinition($ed1);
126126
$this->graphHandler = new GraphHandler($this->connection);

0 commit comments

Comments
 (0)