Skip to content

Commit

Permalink
chore(deps): upgrade cassandra:v4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
qkdreyer committed Jan 2, 2023
1 parent f614cab commit 554b72c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.1
FROM php:8.2
WORKDIR /tmp/cassandra-php-driver

RUN apt update -y \
Expand Down
11 changes: 11 additions & 0 deletions behat.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
default:
formatters:
pretty: true
suites:
default:
filters:
tags: "[email protected]&&[email protected]&&~@broken"
contexts:
- FeatureContext:
cassandra_version: "4.1.0"

cassandra-version-3.11:
formatters:
pretty: true
suites:
Expand Down
2 changes: 1 addition & 1 deletion features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class FeatureContext implements Context, SnippetAcceptingContext
*/
public function __construct($cassandra_version)
{
$this->ccm = new \CCM();
$this->ccm = new \CCM($cassandra_version);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions support/ccm.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class CCM
{
const DEFAULT_CLUSTER_PREFIX = "php-driver";
const DEFAULT_CASSANDRA_VERSION = "4.0.1";
const DEFAULT_CASSANDRA_VERSION = "4.1.0";
const PROCESS_TIMEOUT_IN_SECONDS = 480;
private $clusterPrefix;
private $isSilent;
Expand All @@ -37,7 +37,7 @@ class CCM
public function __construct($version = self::DEFAULT_CASSANDRA_VERSION, $isSilent = true, $clusterPrefix = self::DEFAULT_CLUSTER_PREFIX)
{
$this->version = $version;
$this->isSilent = $isSilent;
$this->isSilent = $isSilent && \getenv('CI');
$this->clusterPrefix = $clusterPrefix;
$this->cluster = null;
$this->session = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ protected function assertUserDefinedFunctionsEqual($name, $function) {
}
}
if (is_null($expectedFunction)) {
$this->fail("Unable to Locate Function: ${name}");
$this->fail("Unable to Locate Function: {$name}");
}

$this->assertEquals($expectedFunction->simpleName(),
Expand Down

0 comments on commit 554b72c

Please sign in to comment.