Skip to content

Commit

Permalink
Require laravel 10
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrig committed Mar 1, 2023
1 parent a9f57ab commit 9272fdb
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: Testing with PHP ${{ matrix.php }}
strategy:
matrix:
php: [8.0, 8.1]
php: [8.1, 8.2]
steps:
- uses: actions/checkout@v3

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/vendor
.DS_STORE
.phpunit.cache
.phpunit.result.cache
composer.lock
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed
- **BREAKING**: Require Laravel 10.

## [0.3.0] - 2023-01-19
### Changed
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
"license": "MIT",
"name": "glesys/butler-health",
"require": {
"php": "^8.0.2",
"php": "^8.1",
"guzzlehttp/guzzle": "^7.2",
"illuminate/contracts": "^9.0",
"illuminate/database": "^9.0",
"illuminate/routing": "^9.0",
"illuminate/support": "^9.0"
"illuminate/contracts": "^10.0",
"illuminate/database": "^10.0",
"illuminate/routing": "^10.0",
"illuminate/support": "^10.0"
},
"require-dev": {
"graham-campbell/testbench": "^5.7",
"graham-campbell/testbench": "^6.0",
"laravel/pint": "^1.2",
"phpunit/phpunit": "^9.5.10"
"phpunit/phpunit": "^10.0"
},
"type": "library"
}
26 changes: 11 additions & 15 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Butler Health Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="Butler Health Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
</phpunit>
4 changes: 2 additions & 2 deletions tests/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

abstract class AbstractTestCase extends AbstractPackageTestCase
{
protected function getServiceProviderClass()
protected static function getServiceProviderClass(): string
{
return ServiceProvider::class;
}

protected function getEnvironmentSetUp($app)
protected function getEnvironmentSetUp($app): void
{
parent::getEnvironmentSetUp($app);

Expand Down

0 comments on commit 9272fdb

Please sign in to comment.