From b6a0b5caa9bd509fd03d5f0aad7c42d9cb0f5fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Sat, 8 Apr 2023 20:41:03 +0200 Subject: [PATCH] Update test suite and report failed assertions --- .github/workflows/ci.yml | 3 ++- README.md | 10 +++++----- composer.json | 10 +++++++--- phpunit.xml.dist | 13 +++++++++---- phpunit.xml.legacy | 10 +++++++++- 5 files changed, 32 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9cb2ffd..620de65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,12 +26,13 @@ jobs: - 5.5 - 5.4 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: sqlite3 coverage: xdebug + ini-file: development - run: composer install - run: vendor/bin/phpunit --coverage-text if: ${{ matrix.php >= 7.3 }} diff --git a/README.md b/README.md index 40607d1..9bd500b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # clue/reactphp-sqlite -[![CI status](https://github.com/clue/reactphp-sqlite/workflows/CI/badge.svg)](https://github.com/clue/reactphp-sqlite/actions) +[![CI status](https://github.com/clue/reactphp-sqlite/actions/workflows/ci.yml/badge.svg)](https://github.com/clue/reactphp-sqlite/actions) [![installs on Packagist](https://img.shields.io/packagist/dt/clue/reactphp-sqlite?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/clue/reactphp-sqlite) Async SQLite database, lightweight non-blocking process wrapper around file-based database extension (`ext-sqlite3`), @@ -438,7 +438,7 @@ This project follows [SemVer](https://semver.org/). This will install the latest supported version: ```bash -$ composer require clue/reactphp-sqlite:^1.5 +composer require clue/reactphp-sqlite:^1.5 ``` See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. @@ -452,7 +452,7 @@ PHP extension, so you'll have to make sure that you have a suitable version installed. On Debian/Ubuntu-based systems, you may simply install it like this: ```bash -$ sudo apt install php-sqlite3 +sudo apt install php-sqlite3 ``` ## Tests @@ -461,13 +461,13 @@ To run the test suite, you first need to clone this repo and then install all dependencies [through Composer](https://getcomposer.org/): ```bash -$ composer install +composer install ``` To run the test suite, go to the project root and run: ```bash -$ vendor/bin/phpunit +vendor/bin/phpunit ``` ## License diff --git a/composer.json b/composer.json index f1fd012..eddd853 100644 --- a/composer.json +++ b/composer.json @@ -19,12 +19,16 @@ "react/promise": "^3 || ^2.7 || ^1.2.1" }, "require-dev": { - "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35" + "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" }, "autoload": { - "psr-4": { "Clue\\React\\SQLite\\": "src/" } + "psr-4": { + "Clue\\React\\SQLite\\": "src/" + } }, "autoload-dev": { - "psr-4": { "Clue\\Tests\\React\\SQLite\\": "tests/" } + "psr-4": { + "Clue\\Tests\\React\\SQLite\\": "tests/" + } } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 93827ff..4a2642a 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,11 +1,11 @@ - - + @@ -20,5 +20,10 @@ + + + + + diff --git a/phpunit.xml.legacy b/phpunit.xml.legacy index 080247b..b7fa94e 100644 --- a/phpunit.xml.legacy +++ b/phpunit.xml.legacy @@ -1,6 +1,6 @@ - + ./src/ + + + + + + + +