Skip to content

Commit

Permalink
Bump tarantool/client version to v0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
rybakit committed Sep 13, 2022
1 parent 3f2c3c5 commit 7a1b2e5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 165 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1']
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP, with composer and extensions
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: msgpack
coverage: none

- name: Get composer cache directory
Expand Down Expand Up @@ -53,7 +52,6 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: msgpack
coverage: none

- name: Get composer cache directory
Expand Down
22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ It is based on [rybakit/phpunit-extras](https://github.com/rybakit/phpunit-extra
* [Lua](#lua)
* [Sql](#sql)
* [Requirements](#requirements)
* [ClientPacker](#clientpacker)
* [LuaCondition](#luacondition)
* [TarantoolVersion](#tarantoolversion)
* [Expectations](#expectations)
Expand Down Expand Up @@ -152,27 +151,6 @@ public function testExecuteQueryFetchesAllRows() : void

Requirements allow skipping tests based on preconditions.

#### ClientPacker

*Format:*

```
@requires clientPacker <packer>
```
where `<packer>` is either `pure`, `pecl`, or a fully qualified class name, e.g. `Tarantool\Client\Packer\PurePacker`.

*Example:*

```php
/**
* @requires clientPacker pure
*/
public function testPackerUnpacksBigIntegerAsDecimal() : void
{
// ...
}
```

#### LuaCondition

*Format:*
Expand Down
14 changes: 6 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,16 @@
}
],
"require": {
"php": "^7.1|^8",
"php": "^7.2.5|^8",
"composer/semver": "^1.5",
"composer/package-versions-deprecated": "^1.4",
"rybakit/phpunit-extras": "^0.2.3",
"symfony/expression-language": "^3.3|^4|^5",
"tarantool/client": "^0.8|^0.9"
"rybakit/phpunit-extras": "^0.2.4",
"symfony/expression-language": "^3.3|^4|^5|^6",
"tarantool/client": "^0.10"
},
"require-dev": {
"php": "^7.1.3|^8",
"ext-msgpack": "*",
"friendsofphp/php-cs-fixer": "^2.14",
"rybakit/msgpack": "*",
"php": "^7.2.5|^8",
"friendsofphp/php-cs-fixer": "^2.19",
"vimeo/psalm": "^3.9|^4"
},
"autoload": {
Expand Down
2 changes: 0 additions & 2 deletions src/Annotation/Annotations.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Tarantool\Client\Client;
use Tarantool\PhpUnit\Annotation\Processor\LuaProcessor;
use Tarantool\PhpUnit\Annotation\Processor\SqlProcessor;
use Tarantool\PhpUnit\Annotation\Requirement\ClientPackerRequirement;
use Tarantool\PhpUnit\Annotation\Requirement\LuaConditionRequirement;
use Tarantool\PhpUnit\Annotation\Requirement\TarantoolVersionRequirement;

Expand All @@ -35,7 +34,6 @@ protected function createAnnotationProcessorBuilder() : AnnotationProcessorBuild
return $this->createBaseAnnotationProcessorBuilder()
->addProcessor(new LuaProcessor($client))
->addProcessor(new SqlProcessor($client))
->addRequirement(new ClientPackerRequirement($client))
->addRequirement(new LuaConditionRequirement($client))
->addRequirement(new TarantoolVersionRequirement($client))
;
Expand Down
54 changes: 0 additions & 54 deletions src/Annotation/Requirement/ClientPackerRequirement.php

This file was deleted.

75 changes: 0 additions & 75 deletions tests/Annotation/Requirement/ClientPackerRequirementTest.php

This file was deleted.

0 comments on commit 7a1b2e5

Please sign in to comment.