Skip to content

Commit f04d123

Browse files
committed
misc updates for lastest php versions
1 parent 08b0e4d commit f04d123

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
strategy:
88
matrix:
9-
php-versions: [ '8.0', '8.1', '8.2', '8.3' ]
9+
php-versions: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"config": {
3535
"platform": {
36-
"php": "8.0.5"
36+
"php": "8.2"
3737
}
3838
},
3939
"license": "MIT"

test/AutolinkTest.php

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
<?php
2-
/**
3-
* Part of php-autolink project.
4-
*
5-
* @copyright Copyright (C) 2015 {ORGANIZATION}. All rights reserved.
6-
* @license GNU General Public License version 2 or later;
7-
*/
2+
3+
declare(strict_types=1);
84

95
use Asika\Autolink\Autolink;
6+
use PHPUnit\Framework\Attributes\DataProvider;
7+
use PHPUnit\Framework\TestCase;
8+
use Windwalker\Test\Traits\BaseAssertionTrait;
109

1110
/**
1211
* The AutolinkTest class.
1312
*
1413
* @since 1.0
1514
*/
16-
class AutolinkTest extends \PHPUnit\Framework\TestCase
15+
class AutolinkTest extends TestCase
1716
{
18-
use \Windwalker\Test\Traits\BaseAssertionTrait;
17+
use BaseAssertionTrait;
1918

2019
/**
2120
* Property instance.
@@ -391,7 +390,7 @@ public function testGetAndSetLinkBuilder()
391390
*
392391
* @return array
393392
*/
394-
public function urlProvider()
393+
public static function urlProvider()
395394
{
396395
return [
397396
[
@@ -428,10 +427,8 @@ public function urlProvider()
428427
* @param $expect
429428
* @param $limit
430429
* @param $dots
431-
*
432-
* @dataProvider urlProvider
433-
*
434430
*/
431+
#[DataProvider('urlProvider')]
435432
public function testShortenUrl($url, $expect, $limit, $dots)
436433
{
437434
self::assertEquals($expect, \Asika\Autolink\Autolink::shortenUrl($url, $limit, $dots));

0 commit comments

Comments
 (0)