Skip to content

Commit

Permalink
adding getter and setter magic methods for 8.2 compat (#39)
Browse files Browse the repository at this point in the history
adding getter and setter magic methods for 8.2 compat.

addresses #38
  • Loading branch information
dcarbone authored Aug 23, 2023
1 parent 87b1e39 commit cfc793c
Show file tree
Hide file tree
Showing 6 changed files with 166 additions and 72 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:

env:
CONSUL_HTTP_ADDR: "127.0.0.1:8500"
CONSUL_VERSION: '1.16.1'

jobs:
tests:
Expand All @@ -33,22 +34,32 @@ jobs:
name: Tests - PHP ${{ matrix.php-version }}
steps:
- uses: actions/checkout@v3

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: json
ini-values: precision=14,serialize_precision=-1
- run: |

- name: 'Composer update'
# language=bash
run: |
composer update \
--no-ansi \
--no-interaction \
--no-scripts \
--no-progress
- run: |
wget https://releases.hashicorp.com/consul/1.15.2/consul_1.15.2_linux_amd64.zip
unzip consul_1.15.2_linux_amd64.zip -d /usr/local/bin/
rm consul_1.15.2_linux_amd64.zip
- name: 'Install Consul'
# language=bash
run: |
wget https://releases.hashicorp.com/consul/${{ env.CONSUL_VERSION }}/consul_${{ env.CONSUL_VERSION }}_linux_amd64.zip
unzip consul_${{ env.CONSUL_VERSION }}_linux_amd64.zip -d /usr/local/bin/
rm consul_${{ env.CONSUL_VERSION }}_linux_amd64.zip
chmod +x /usr/local/bin/consul
consul --version
- run: |
- name: 'Execute tests'
# language=bash
run: |
./vendor/bin/phpunit -c phpunit.xml
106 changes: 54 additions & 52 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,9 @@
<testsuite name="usage-session">
<directory>./tests/Usage/Session</directory>
</testsuite>

<testsuite name="usage-random">
<directory>./tests/Usage/Random</directory>
</testsuite>
</testsuites>
</phpunit>
Loading

0 comments on commit cfc793c

Please sign in to comment.