123456789101112131415161718192021222324252627 |
- <?php
- namespace GraphAware\NeoClient\Formatter\Tests\Integration;
- use Neoxygen\NeoClient\Client;
- use Neoxygen\NeoClient\ClientBuilder;
- abstract class IntegrationBaseTest
- {
- /**
- * @var \Neoxygen\NeoClient\Client
- */
- protected $conn;
- public function getConnection()
- {
- if (!$this->conn instanceof Client) {
- $this->conn = ClientBuilder::create()
- ->addConnection('default', 'http', 'localhost', 7474, true, 'neo4j', 'veryCoolMax')
- ->setAutoFormatResponse(true)
- ->enableNewFormattingService()
- ->build();
- }
- return $this->conn;
- }
- }
|