Skip to content

Commit 119825e

Browse files
committed
Set travis php version to 7.1
1 parent 9ab31b9 commit 119825e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sudo: false
33
language: php
44

55
php:
6-
- 7.1.1 #todo remove after release php 7.1.3
6+
- 7.1
77
- nightly
88

99
matrix:

tests/DataMapper/Redis/RedisImplementationIntegrationTest.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ public static function tearDownAfterClass()
4343
}
4444
}
4545

46+
protected function tearDown()
47+
{
48+
parent::tearDown();
49+
50+
$this->redisClient->close();
51+
}
52+
4653
public function testSimpleModel()
4754
{
4855
$model = new SimpleModel('simple-model-id1', 'field 1');
@@ -58,8 +65,6 @@ public function testSimpleModel()
5865
$this->assertEquals($model->getId(), $loadedModel->getId());
5966
$this->assertEquals($model->getField1(), $loadedModel->getField1());
6067
$this->assertNull($loadedModel->getField2());
61-
62-
$this->redisClient->close();
6368
}
6469

6570
public function testBooks()
@@ -174,8 +179,6 @@ public function testBooks()
174179

175180
$loadedAuthor1AfterClear = wait($modelManager->find(Author::class, 'author-id1', 1, $identityMap));
176181
$this->assertNotSame($loadedAuthor1, $loadedAuthor1AfterClear);
177-
178-
$this->redisClient->close();
179182
}
180183

181184
private function getModelManager(): ModelManager

0 commit comments

Comments
 (0)