Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: PHPUnit: Upgrade from v10 to v11 #12

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
strategy:
matrix:
version:
- /usr/bin/php8.1
- /usr/bin/php8.2
- /usr/bin/php8.3
runs-on: ubuntu-20.04
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"license": "MIT",
"name": "nostadt/share-url",
"require": {
"php": ">=8.1"
"php": ">=8.2"
},
"require-dev": {
"phpstan/phpstan": "^1.10.50",
"phpunit/phpunit": "^10"
"phpunit/phpunit": "^11"
},
"scripts": {
"normalize": "./bin/json-normalize composer.json 2",
Expand Down
6 changes: 2 additions & 4 deletions tests/FacebookShareUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
namespace Nostadt\ShareUrl\Tests;

use Nostadt\ShareUrl\FacebookShareUrl;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;

#[CoversClass(FacebookShareUrl::class)]
class FacebookShareUrlTest extends TestCase
{
/**
* @return void
* @covers \Nostadt\ShareUrl\FacebookShareUrl
*/
public function testClass(): void
{
self::assertSame(
Expand Down
6 changes: 2 additions & 4 deletions tests/TelegramShareUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
namespace Nostadt\ShareUrl\Tests;

use Nostadt\ShareUrl\TelegramShareUrl;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;

#[CoversClass(TelegramShareUrl::class)]
class TelegramShareUrlTest extends TestCase
{
/**
* @return void
* @covers \Nostadt\ShareUrl\TelegramShareUrl
*/
public function testClass(): void
{
self::assertSame(
Expand Down
6 changes: 2 additions & 4 deletions tests/ThreemaShareUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
namespace Nostadt\ShareUrl\Tests;

use Nostadt\ShareUrl\ThreemaShareUrl;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;

#[CoversClass(ThreemaShareUrl::class)]
class ThreemaShareUrlTest extends TestCase
{
/**
* @return void
* @covers \Nostadt\ShareUrl\ThreemaShareUrl
*/
public function testClass(): void
{
self::assertSame(
Expand Down
6 changes: 2 additions & 4 deletions tests/WhatsAppShareUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
namespace Nostadt\ShareUrl\Tests;

use Nostadt\ShareUrl\WhatsAppShareUrl;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\TestCase;

#[CoversClass(WhatsAppShareUrl::class)]
class WhatsAppShareUrlTest extends TestCase
{
/**
* @return void
* @covers \Nostadt\ShareUrl\WhatsAppShareUrl
*/
public function testClass(): void
{
self::assertSame(
Expand Down
8 changes: 4 additions & 4 deletions tests/XShareUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
namespace Nostadt\ShareUrl\Tests;

use Nostadt\ShareUrl\XShareUrl;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;

#[CoversClass(XShareUrl::class)]
class XShareUrlTest extends TestCase
{
/**
* @covers \Nostadt\ShareUrl\XShareUrl
* @dataProvider objectProvider
*/
#[DataProvider('objectProvider')]
public function testClass(XShareUrl $subject, string $expectation): void
{
self::assertSame($expectation, $subject->__toString());
Expand Down
Loading