Skip to content

Commit cfc793c

Browse files
authored
adding getter and setter magic methods for 8.2 compat (#39)
adding getter and setter magic methods for 8.2 compat. addresses #38
1 parent 87b1e39 commit cfc793c

File tree

6 files changed

+166
-72
lines changed

6 files changed

+166
-72
lines changed

.github/workflows/tests.yaml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222

2323
env:
2424
CONSUL_HTTP_ADDR: "127.0.0.1:8500"
25+
CONSUL_VERSION: '1.16.1'
2526

2627
jobs:
2728
tests:
@@ -33,22 +34,32 @@ jobs:
3334
name: Tests - PHP ${{ matrix.php-version }}
3435
steps:
3536
- uses: actions/checkout@v3
37+
3638
- uses: shivammathur/setup-php@v2
3739
with:
3840
php-version: ${{ matrix.php-version }}
3941
extensions: json
4042
ini-values: precision=14,serialize_precision=-1
41-
- run: |
43+
44+
- name: 'Composer update'
45+
# language=bash
46+
run: |
4247
composer update \
4348
--no-ansi \
4449
--no-interaction \
4550
--no-scripts \
4651
--no-progress
47-
- run: |
48-
wget https://releases.hashicorp.com/consul/1.15.2/consul_1.15.2_linux_amd64.zip
49-
unzip consul_1.15.2_linux_amd64.zip -d /usr/local/bin/
50-
rm consul_1.15.2_linux_amd64.zip
52+
53+
- name: 'Install Consul'
54+
# language=bash
55+
run: |
56+
wget https://releases.hashicorp.com/consul/${{ env.CONSUL_VERSION }}/consul_${{ env.CONSUL_VERSION }}_linux_amd64.zip
57+
unzip consul_${{ env.CONSUL_VERSION }}_linux_amd64.zip -d /usr/local/bin/
58+
rm consul_${{ env.CONSUL_VERSION }}_linux_amd64.zip
5159
chmod +x /usr/local/bin/consul
5260
consul --version
53-
- run: |
61+
62+
- name: 'Execute tests'
63+
# language=bash
64+
run: |
5465
./vendor/bin/phpunit -c phpunit.xml

composer.lock

Lines changed: 54 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,9 @@
4343
<testsuite name="usage-session">
4444
<directory>./tests/Usage/Session</directory>
4545
</testsuite>
46+
47+
<testsuite name="usage-random">
48+
<directory>./tests/Usage/Random</directory>
49+
</testsuite>
4650
</testsuites>
4751
</phpunit>

0 commit comments

Comments
 (0)