Skip to content

Commit

Permalink
Add support for newer PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
yguedidi committed Dec 17, 2023
1 parent 3b355e0 commit 1101f0b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.2]
php: [7.2, 7.3, 7.4, 8.0, 8.1, 8.2]
fail-fast: true
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"ext-json": "*",

"mikey179/vfsstream": "~1.4",
"phpspec/phpspec": "~4.0",
"phpspec/phpspec": "~6.0|~7.0",

"behat/behat": "~3.0",

Expand Down
4 changes: 2 additions & 2 deletions tests/spec/RulerZ/Context/ExecutionContextSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public function it_allows_property_access_through_offset($object)

public function it_allows_testing_property_existence($object)
{
$this->offsetExists('some')->shouldReturn(true);
$this->offsetExists('non_existent_offset')->shouldReturn(false);
$this->shouldHaveKey('some');
$this->shouldNotHaveKey('non_existent_offset');
}

public function it_forbids_setting_properties()
Expand Down
4 changes: 2 additions & 2 deletions tests/spec/RulerZ/Context/ObjectContextSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public function it_allows_testing_property_existence($object)
{
$object->property = 42;

$this->offsetExists('property')->shouldReturn(true);
$this->offsetExists('non_existent_property')->shouldReturn(false);
$this->shouldHaveKey('property');
$this->shouldNotHaveKey('non_existent_property');
}

public function it_forbids_setting_properties()
Expand Down

0 comments on commit 1101f0b

Please sign in to comment.