-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor tests for PHPUnit 10.x compat
- Loading branch information
1 parent
d49068f
commit e093358
Showing
140 changed files
with
3,695 additions
and
2,605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" bootstrap="tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
<report> | ||
<clover outputFile="build/coverage.clover"/> | ||
</report> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="scrapbook"> | ||
<directory suffix="Test.php">tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<logging/> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" bootstrap="tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd"> | ||
<coverage> | ||
<report> | ||
<clover outputFile="build/coverage.clover"/> | ||
</report> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="Apc"> | ||
<directory suffix="Test.php">tests/Adapters/Apc</directory> | ||
</testsuite> | ||
<testsuite name="Couchbase"> | ||
<directory suffix="Test.php">tests/Adapters/Couchbase</directory> | ||
</testsuite> | ||
<testsuite name="Flysystem"> | ||
<directory suffix="Test.php">tests/Adapters/Flysystem</directory> | ||
</testsuite> | ||
<testsuite name="Memcached"> | ||
<directory suffix="Test.php">tests/Adapters/Memcached</directory> | ||
</testsuite> | ||
<testsuite name="MemoryStore"> | ||
<directory suffix="Test.php">tests/Adapters/MemoryStore</directory> | ||
</testsuite> | ||
<testsuite name="MySQL"> | ||
<directory suffix="Test.php">tests/Adapters/MySQL</directory> | ||
</testsuite> | ||
<testsuite name="PostgreSQL"> | ||
<directory suffix="Test.php">tests/Adapters/PostgreSQL</directory> | ||
</testsuite> | ||
<testsuite name="Redis"> | ||
<directory suffix="Test.php">tests/Adapters/Redis</directory> | ||
</testsuite> | ||
<testsuite name="SQLite"> | ||
<directory suffix="Test.php">tests/Adapters/SQLite</directory> | ||
</testsuite> | ||
</testsuites> | ||
<logging/> | ||
<source> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace MatthiasMullie\Scrapbook\Tests; | ||
|
||
use MatthiasMullie\Scrapbook\KeyValueStore; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
abstract class AbstractAdapterTestCase extends TestCase | ||
{ | ||
protected KeyValueStore $adapterKeyValueStore; | ||
protected string $collectionName; | ||
|
||
protected function setUp(): void | ||
{ | ||
parent::setUp(); | ||
|
||
$this->collectionName = $this->getCollectionName(); | ||
$this->adapterKeyValueStore = $this->getAdapterKeyValueStore(); | ||
} | ||
|
||
abstract public function getAdapterKeyValueStore(): KeyValueStore; | ||
|
||
abstract public function getCollectionName(): string; | ||
} |
Oops, something went wrong.