5 Commits

Author SHA1 Message Date
loic
2bddf4d18c fix tests folder 2026-02-27 15:50:41 +01:00
loic
d770cdfcc7 fix tests 2026-02-27 15:49:45 +01:00
loic
053c7a1f80 add code coverage 2026-02-27 15:46:52 +01:00
loic
e8bd6365bf update CHANGELOG.md 2026-02-25 14:15:35 +01:00
AUDUL
9f99c0dadf Update code php8 (#5)
* update code to php 8

remove lcobucci/jwt

* update code to php 8

remove lcobucci/jwt

* update code to php 8

remove lcobucci/jwt

* update code to php 8

remove lcobucci/jwt

* update code to php 8

remove lcobucci/jwt

* update code to php 8

remove lcobucci/jwt

* update code to php 8

remove lcobucci/jwt

* update code to php 8

remove lcobucci/jwt

* update code to php 8

remove lcobucci/jwt

* update code to php 8

remove lcobucci/jwt

* update code to php 8

remove lcobucci/jwt

* update code to php 8

remove lcobucci/jwt

* update code to php 8

remove lcobucci/jwt

* fix private email
2026-02-25 14:12:03 +01:00
9 changed files with 39 additions and 13 deletions

View File

@@ -23,7 +23,7 @@ jobs:
tools: composer:v2
- uses: ramsey/composer-install@v3
- name: 'Lint the PHP source code'
run: ./vendor/bin/parallel-lint src test
run: ./vendor/bin/parallel-lint src tests
coding-standards:
name: Coding Standards

1
.gitignore vendored
View File

@@ -5,3 +5,4 @@ composer.phar
composer.lock
.DS_Store
.phpunit.result.cache
/.phpunit.cache/

View File

@@ -18,6 +18,14 @@ All Notable changes to `oauth2-apple` will be documented in this file
### Security
- Nothing
## 0.5.0 - 2026-02-25
### Fixed
- Updated code base to php 8
### Removed
- lcobucci/jwt library
## 0.4.0 - 2026-02-19
### Added

View File

@@ -41,7 +41,7 @@
},
"autoload-dev": {
"psr-4": {
"League\\OAuth2\\Client\\Test\\": "test/src/"
"League\\OAuth2\\Client\\Test\\": "tests/src/"
}
},
"extra": {

View File

@@ -1,13 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false"
convertDeprecationsToExceptions="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true"
convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false"
stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.5/phpunit.xsd">
<logging/>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache"
executionOrder="depends,defects"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
displayDetailsOnPhpunitDeprecations="true"
failOnPhpunitDeprecation="true"
failOnRisky="true"
failOnWarning="true">
<testsuites>
<testsuite name="Package Test Suite">
<directory suffix=".php">./test/</directory>
<exclude>./test/src/Provider/TestApple.php</exclude>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>
<source restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
</include>
</source>
<coverage>
<report>
<clover outputFile="./build/coverage/log/coverage.xml"/>
<html outputDirectory="./build/coverage/html" lowUpperBound="35" highLowerBound="70"/>
</report>
</coverage>
</phpunit>

View File

@@ -19,7 +19,7 @@ class AppleTest extends TestCase
/**
* @return Apple
*/
private function getProvider()
private function getProvider(): Apple
{
return new Apple([
'clientId' => 'mock.example',

View File

@@ -2,12 +2,11 @@
namespace League\OAuth2\Client\Test\Token;
use Firebase\JWT\Key;
use League\OAuth2\Client\Token\AppleAccessToken;
use Mockery as m;
use PHPUnit\Framework\Attributes\PreserveGlobalState;
use PHPUnit\Framework\Attributes\RunInSeparateProcess;
use PHPUnit\Framework\TestCase;
use Mockery as m;
class AppleAccessTokenTest extends TestCase
{