Skip to content

Commit

Permalink
qa: bump laminas/laminas-cache-storage-adapter-test along with phpunit
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
  • Loading branch information
boesing committed Apr 25, 2021
1 parent f6a8348 commit be16d34
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 133 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/.phpunit.result.cache
/composer.lock
/docs/html/
/laminas-mkdoc-theme.tgz
/laminas-mkdoc-theme/
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
},
"require-dev": {
"laminas/laminas-cache": "^2.10",
"laminas/laminas-cache-storage-adapter-test": "^1.0.2",
"laminas/laminas-cache-storage-adapter-test": "^1.1.1",
"laminas/laminas-coding-standard": "~1.0.0",
"laminas/laminas-serializer": "^2.10",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^2.7"
},
"config": {
Expand Down
26 changes: 11 additions & 15 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true">
<testsuites>
<testsuite name="Laminas cache-storage-adapter-filesystem Tests">
<directory>./test</directory>
</testsuite>
</testsuites>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Laminas cache-storage-adapter-filesystem Tests">
<directory>./test</directory>
</testsuite>
</testsuites>
</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@

class FilesystemIntegrationTest extends TestCase
{
/**
* @expectedException \Laminas\Cache\Psr\CacheItemPool\CacheException
*/
public function testAdapterNotSupported()
{
$this->expectException(\Laminas\Cache\Psr\CacheItemPool\CacheException::class);
$storage = StorageFactory::adapterFactory('filesystem');
$storage->addPlugin(new Serializer());
new CacheItemPoolDecorator($storage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class FilesystemIntegrationTest extends SimpleCacheTest
/** @var int */
protected $umask;

public function setUp()
protected function setUp(): void
{
$this->umask = umask();

Expand All @@ -47,16 +47,18 @@ public function setUp()

$ttlMessage = 'Filesystem adapter does not honor TTL';
$keyMessage = 'Filesystem adapter supports a subset of PSR-16 characters for keys';
$keyLengthMessage = 'Filesystem adapter supports only 64 characters for a cache key';

$this->skippedTests['testSetTtl'] = $ttlMessage;
$this->skippedTests['testSetMultipleTtl'] = $ttlMessage;
$this->skippedTests['testSetValidKeys'] = $keyMessage;
$this->skippedTests['testSetMultipleValidKeys'] = $keyMessage;
$this->skippedTests['testBasicUsageWithLongKey'] = $keyLengthMessage;

parent::setUp();
}

public function tearDown()
protected function tearDown(): void
{
$this->removeRecursive($this->tmpCacheDir);

Expand Down
Loading

0 comments on commit be16d34

Please sign in to comment.