Skip to content

Commit 68338fa

Browse files
committed
### Removed PREDIS dependency. Going forward testing will be done against PHPREDIS, as that is installed by default on Laravel Forge servers and the officially recommended Redis client, since PREDIS is no longer maintained.
1 parent 7d8d3a2 commit 68338fa

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.10.0] - 2020-08-02
8+
### Removed
9+
- PREDIS dependency. Going forward testing will be done against PHPREDIS, as
10+
that is installed by default on Laravel Forge servers and the officially
11+
recommended Redis client, since PREDIS is no longer maintained.
12+
713
## [0.9.0] - 2020-07-17
814
### Removed
915
- support for PHP 7.2 due to incompatibility.

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
"illuminate/container": "^7.0",
2424
"illuminate/database": "^7.0",
2525
"illuminate/http": "^7.0",
26-
"illuminate/support": "^7.0",
27-
"predis/predis": "^1.1"
26+
"illuminate/support": "^7.0"
2827
},
2928
"require-dev": {
3029
"doctrine/dbal": "^2.10",

phpunit.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@
3535
<env name="QUEUE_DRIVER" value="sync"/>
3636
<env name="DB_CONNECTION" value="sqlite"/>
3737
<env name="DB_DATABASE" value=":memory:"/>
38-
<env name="REDIS_HOST" value="192.168.10.10"/>
39-
<env name="PGSQL_HOST" value="192.168.10.10"/>
38+
<env name="REDIS_HOST" value="127.0.0.1"/>
39+
<env name="PGSQL_HOST" value="127.0.0.1"/>
40+
<env name="PGSQL_USERNAME" value="forge"/>
41+
<env name="PGSQL_PASSWORD" value="EgHVxwTqHq9zikfzAoe6"/>
42+
<env name="PGSQL_DATABASE" value="testing"/>
4043
</php>
4144
</phpunit>

tests/CreatesApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected function getEnvironmentSetUp($app)
103103
'prefix' => '',
104104
"foreign_key_constraints" => false,
105105
]);
106-
$app['config']->set('database.redis.client', "predis");
106+
$app['config']->set('database.redis.client', "phpredis");
107107
$app['config']->set('database.redis.cache', [
108108
'host' => env('REDIS_HOST', '127.0.0.1'),
109109
'port' => env('REDIS_PORT', 6379),

tests/Integration/CachedBuilder/WhereJsonContainsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ protected function getEnvironmentSetUp($app)
1515

1616
$app['config']->set('database.default', 'pgsql');
1717
$app['config']->set('database.connections.pgsql.host', env("PGSQL_HOST", "127.0.0.1"));
18-
$app['config']->set('database.connections.pgsql.database', "testing");
19-
$app['config']->set('database.connections.pgsql.username', "homestead");
20-
$app['config']->set('database.connections.pgsql.password', "secret");
18+
$app['config']->set('database.connections.pgsql.database', env("PGSQL_DATABASE", "testing");
19+
$app['config']->set('database.connections.pgsql.username', env("PGSQL_USERNAME", "homestead");
20+
$app['config']->set('database.connections.pgsql.password', env("PGSQL_PASSWORD", "secret");
2121
}
2222

2323
public function setUp() : void

0 commit comments

Comments
 (0)