Skip to content

Commit b006d5c

Browse files
authored
dev/2.1.0 (#15)
* Fixing the unit and integration tests (for phpunit 7+) * PHP min. requirement is 7.2 * Removed "--ignore-platform-reqs" for composer * Version bump * Badge update * Removed support for PHP 7.1
1 parent 8d62ca7 commit b006d5c

24 files changed

+30
-63
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ cache:
1010
- $HOME/.composer/cache
1111

1212
php:
13-
- 7.1
1413
- 7.2
1514
- 7.3
1615

@@ -31,7 +30,7 @@ before_script:
3130
- pecl install msgpack
3231

3332
install:
34-
- composer update -o --no-interaction --prefer-stable --ignore-platform-reqs
33+
- composer update -o --no-interaction --prefer-stable
3534

3635
script:
3736
- vendor/bin/phpunit --coverage-clover build/coverage/clover.xml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Koded - Simple Caching Library
66
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/1b3bad367cc74a3fa98996c252cdfe6f)](https://www.codacy.com/app/kodeart/cache-simple)
77
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/1b3bad367cc74a3fa98996c252cdfe6f)](https://www.codacy.com/app/kodeart/cache-simple)
88
[![Packagist Downloads](https://img.shields.io/packagist/dt/koded/cache-simple.svg)](https://packagist.org/packages/koded/cache-simple)
9-
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.1-8892BF.svg)](https://php.net/)
9+
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.2-8892BF.svg)](https://php.net/)
1010
[![Software license](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](LICENSE)
1111

1212
A [PSR-16][10] simple caching library for PHP 7 using several caching technologies.

Tests/Client/FileClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function test_global_ttl()
5656
$this->assertFalse($client->has('key'));
5757
}
5858

59-
protected function setUp()
59+
protected function setUp(): void
6060
{
6161
$this->dir = vfsStream::setup();
6262
}

Tests/Client/MemoryClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function test_global_ttl_when_set()
4545
'Global TTL is ignored if explicit is not NULL');
4646
}
4747

48-
protected function setUp()
48+
protected function setUp(): void
4949
{
5050
putenv('CACHE_CLIENT=memory');
5151
$this->cache = (new CacheClientFactory(new ConfigFactory))->new();

Tests/Configuration/MemcachedConfigurationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function test_should_build_default_arguments()
6868
], $config->getOptions());
6969
}
7070

71-
protected function tearDown()
71+
protected function tearDown(): void
7272
{
7373
putenv('MEMCACHED_POOL=');
7474
}

Tests/FileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function test_should_return_self()
2424
$this->assertInstanceOf(FileClient::class, $this->cache->client());
2525
}
2626

27-
protected function setUp()
27+
protected function setUp(): void
2828
{
2929
$dir = vfsStream::setup();
3030
$this->cache = new FileClient(new NullLogger, $dir->url());

Tests/Integration/FileClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function createSimpleCache()
2525
return simple_cache_factory('file');
2626
}
2727

28-
protected function setUp()
28+
protected function setUp(): void
2929
{
3030
$this->skippedTests = [
3131
'testSetMultipleInvalidKeys' => '',

Tests/Integration/MemcachedClientTest.php

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function createSimpleCache()
1818
return simple_cache_factory('memcached');
1919
}
2020

21-
protected function setUp()
21+
protected function setUp(): void
2222
{
2323
if (false === extension_loaded('memcached')) {
2424
$this->markTestSkipped('Memcached extension is not loaded.');
@@ -50,39 +50,6 @@ protected function setUp()
5050
'testSetMultipleWithGenerator' => '',
5151
'testGetMultiple' => '',
5252
'testSetMultipleInvalidKeys' => '',
53-
54-
// 'testGetMultipleWithGenerator' => '',
55-
// 'testDeleteMultiple' => '',
56-
// 'testGetMultipleWithGenerator' => '',
57-
// 'testDeleteMultiple' => '',
58-
// 'testDeleteMultipleGenerator' => '',
59-
// 'testHas' => '',
60-
// 'testGetInvalidKeys' => '',
61-
// 'testGetMultipleInvalidKeys' => '',
62-
// 'testGetMultipleNoIterable' => '',
63-
// 'testSetInvalidKeys' => '',
64-
// 'testSetMultipleInvalidKeys' => '',
65-
// 'testSetMultipleNoIterable' => '',
66-
// 'testHasInvalidKeys' => '',
67-
// 'testDeleteInvalidKeys' => '',
68-
// 'testDeleteMultipleInvalidKeys' => '',
69-
// 'testDeleteMultipleNoIterable' => '',
70-
// 'testSetInvalidTtl' => '',
71-
// 'testSetMultipleInvalidTtl' => '',
72-
// 'testNullOverwrite' => '',
73-
// 'testDataTypeString' => '',
74-
// 'testDataTypeInteger' => '',
75-
// 'testDataTypeFloat' => '',
76-
// 'testDataTypeBoolean' => '',
77-
// 'testDataTypeArray' => '',
78-
// 'testDataTypeObject' => '',
79-
// 'testBinaryData' => '',
80-
// 'testSetValidKeys' => '',
81-
// 'testSetMultipleValidKeys' => '',
82-
// 'testSetValidData' => '',
83-
// 'testSetMultipleValidData' => '',
84-
// 'testObjectAsDefaultValue' => '',
85-
// 'testObjectDoesNotChangeInCache' => '',
8653
];
8754
}
8855
}

Tests/Integration/PredisClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function createSimpleCache()
2424
]);
2525
}
2626

27-
protected function setUp()
27+
protected function setUp(): void
2828
{
2929
parent::setUp();
3030
$this->cache->clear();

Tests/Integration/PredisJsonClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function createSimpleCache()
2828
]);
2929
}
3030

31-
protected function setUp()
31+
protected function setUp(): void
3232
{
3333
parent::setUp();
3434
$this->cache->clear();

0 commit comments

Comments
 (0)