Skip to content

Commit

Permalink
added missing tests for new bolt version
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanak-michal committed Sep 29, 2024
1 parent 61203a1 commit ffb66b5
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/protocol/V5_6.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

namespace Bolt\protocol;

/**
* Class Protocol version 5.4
*
* @author Michal Stefanak
* @link https://github.com/neo4j-php/Bolt
* @see https://www.neo4j.com/docs/bolt/current/bolt/message/
* @package Bolt\protocol
*/
class V5_6 extends AProtocol
{
use \Bolt\protocol\v5\AvailableStructures;
use \Bolt\protocol\v5_1\ServerStateTransition;

use \Bolt\protocol\v1\ResetMessage;

use \Bolt\protocol\v3\RunMessage;
use \Bolt\protocol\v3\BeginMessage;
use \Bolt\protocol\v3\CommitMessage;
use \Bolt\protocol\v3\RollbackMessage;
use \Bolt\protocol\v3\GoodbyeMessage;

use \Bolt\protocol\v4\PullMessage;
use \Bolt\protocol\v4\DiscardMessage;

use \Bolt\protocol\v4_4\RouteMessage;

use \Bolt\protocol\v5_1\LogonMessage;
use \Bolt\protocol\v5_1\LogoffMessage;

use \Bolt\protocol\v5_3\HelloMessage;

use \Bolt\protocol\v5_4\TelemetryMessage;
}
20 changes: 20 additions & 0 deletions tests/protocol/V5_6Test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

use Bolt\protocol\V5_6;

/**
* Class V5_6Test
*
* @author Michal Stefanak
* @link https://github.com/neo4j-php/Bolt
* @package Bolt\tests\protocol
*/
class V5_6Test extends \Bolt\tests\protocol\ProtocolLayer
{
public function test__construct(): V5_6
{
$cls = new V5_6(1, $this->mockConnection());
$this->assertInstanceOf(V5_6::class, $cls);
return $cls;
}
}

0 comments on commit ffb66b5

Please sign in to comment.